Sep 1, 2018 · 1 min read
Hi, Jorge Ivan Rivalcoba Rivas, I had the same question, then I checked out the documentation on Keras’s ImageDataGenerator class, where the flow_from_directory method is explained. The method takes an argument classes that can define a list of optional sub-directories you wish to be indexed in the order you define. However, if no value is provided, each sub directory will be inferred as a class, and the classes will be order alphanumerically.