Posted on 26th April 2024
gen = image.ImageDataGenerator(shuffle=False, ..).flow_from_directory(...)
preds = model.predict_generator(gen, len(gen.filenames)
It works as required; however, if later we utilize the similar gen repeat for some other responsibility, it resembles it is shuffling the images indeed if shuffle=False.
If you are looking for the Keras certification course, you can check out this Keras course by Mindmajix.
STILL GOT QUERIES?