I want to train the multi-input model on a set of images. I use ImageDataGenerator.flow_from_directory()
and fit_generator
in keras.
The problem is I don't know how to use multiple generators.
This is my inputs & output generator and seeds are same:
input1 = imageDataGenerator.flow_from_directory(directory=base_data_directory + 'img/' + mode+'/', **img_generator_config)
input2 = imageDataGenerator.flow_from_directory(directory=base_data_directory + 'edge/' + mode,**edge_generator_config)
output = imageDataGenerator.flow_from_directory(directory=base_data_directory + 'label/' + mode, **label_generator_config)
How should I use fit_generator
with this data?