error during fitting a CNN model #94
-
Hey Daniel, (PS - Love the content! 👍🏻 ) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hey there, Looks like your data has an input shape problem.
What have you tried so far? Do you know what the input shapes of your data are? |
Beta Was this translation helpful? Give feedback.
-
Hey @MEGA-BLASTER2004 I think there is an issue with your dataset itself, when I tried doing the same with a sample dataset (pizza/steak) it worked. Some of the image files in your data might be broken or corrupted. You can try experimenting with the pizza/steak dataset we used in the course and cross-check if you want. |
Beta Was this translation helpful? Give feedback.
-
Hey @MEGA-BLASTER2004 , BeforeAfterNow 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.
|
Beta Was this translation helpful? Give feedback.
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 withtf.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.