ImageDataGenerator - how can I see which images are misclassified?

If I have an image Generator like:

testImageGenerator = imageDataGenerator.flow_from_directory(testDataset,
                                                            target_size=(224, 224), 
                                                            batch_size=1, 
                                                            save_to_dir="/content/come",
                                                            shuffle=False)

And I get misclassifications, how can I get the paths of the misclassified images?

Thanks, first time posting here :slight_smile:

Hi @Cornel_Badea

Welcome to the TensorFlow Forum!

Please provide some more details on the issue how many type of images are in the same folder, what is the exact meaning of misclassified images, means is there different type of image format also there in the same folder? Thank you.