I have been trying to implement a custom ImageDataGenerator for a two input and one output image classification model from an hdf5 file (large dataset of 88k paired images). The