I ingest images in batches. Image name contain important pieces of info that i want add as a second input for better classification:
train_gen = datagen.flow_from_directory(’/my/images/’, …)
While Keras does not document this - I can access all filenames like this:
I can create infinite generator on above list and construct “batches” of image names in parallel with batches of image data that are coming in.
Question: is there a guarantee match between image names and image data sequence order in this case?