Post

KerasKeras

k
kumar san

Posted on 26th April 2024|18 views

0
votes

Keras Flow From Directory

what order does the '.flow_from_directory' read the samples?

Answers
P
kavya A

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.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos