Please help, Error while training

Hello everyone, my code output was the same as expected in the number of pictures found inside the related folder of training and test. But when I set the ImageDataGenerator, I get the following error:

C2_W1_Assignment.ipynb - Colaboratory


I am suspecting the batch sizes, can you please help?

From the error output, it appears that the check, whether the image is 0 size, may have been missed.

It is recommended to use this approach before extracting the image into the list

os.path.getsize(file) > 0

Hopefully that helps :pray:

1 Like