Skip to content

error during fitting a CNN model #94

Discussion options

You must be logged in to vote

Hey @MEGA-BLASTER2004 ,
I firstly thought that the error was with function you used : tf.keras.preprocessing.image_dataset_from_directory. So i had replaced it with tf.keras.preprocessing.image.ImageDataGenerator.flow_from_directory()

Before

After

Now that I changed it I got a new error, I guess that the problem is with the dataset itself. There's some problem with the EXIF data of images.

  • If you had uploaded this dataset to Azure Cloud by yourself the problem might be there.
  • If you haven't, then the problem is with dataset itself.
Epoch 1/3
181/782 [=====>........................] - ETA: 1:08 - loss: 0.1536 - accuracy: 0.9560/usr/local/lib/python3.7/dist-packages/PIL/TiffImagePlugin.…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@devmegablaster
Comment options

Comment options

You must be logged in to vote
2 replies
@gauravreddy08
Comment options

@devmegablaster
Comment options

Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants