# how to use multiple generator in keras fit_generator()

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?

• The answer is provided here in StackOverflow answer – Yohanes Alfredo Nov 21 '19 at 2:23

x = [[image1, feature1], [image2, feature1], [image3, feature1]]