Keras flowFromDirectory get file names as they are being generated
Yes is it possible, at least with version 2.0.4 (don’t know about earlier version). The instance of ImageDataGenerator().flow_from_directory(…) has an attribute with filenames which is a list of all the files in the order the generator yields them and also an attribute batch_index. So you can do it like this: datagen = ImageDataGenerator() gen = … Read more