Categories
Misc

Problem with the classes founded in image_dataset_from_directory

Problem with the classes founded in image_dataset_from_directory

Hello, I want to build a CNN with TensorFlow, I want to load the data with image_dataset_from_directory, and I have the labels, a list of numbers from 0 to 3, so I expect to TensorFlow tell me that it found N images and 4 classes, but I show me that it found 321 classes.

https://preview.redd.it/faxag5owd4391.png?width=680&format=png&auto=webp&s=3bdb89a68bbb8eb0776f2a133a80203d0101c40b

The labels list is like: [0, 3, 1, 1, … , 2, 0, 0]

So, I don’t know if I should modify the list format o distribution, or add another parameter in image_dataset_from_directory, if someone can help me please 🙁

submitted by /u/Current_Falcon_3187
[visit reddit] [comments]

Leave a Reply

Your email address will not be published.