Is it possible to get the file names that were loaded using flow_from_directory? I have :
datagen = ImageDataGenerator(
train_generator = datagen.flow_from_directory(
I have a custom generator for my multi-output model like:
a = np.arange(8).reshape(2, 4)
x,y = train_generator.next()
yield [x] ,[a,y]
The node that at the moment I am generating random numbers for a but for real training, I wish to load up a JSON file that contains the bounding box coordinates for my images. For that, I will need to get the file names that were generated using train_generator.next() method. After I have that, I can load the file, parse the JSON and pass it instead of a. It is also necessary that the ordering of the x variable and the list of the file names that I get are the same.