keras list of Numpy arrays not the size model expected
keras list of Numpy arrays not the size model expected I am having trouble finding the correct way of passing multiple inputs to a model. The model has 2 inputs (256, 256, 3) (256, 256, 3) and 1 output (256, 256, 3) I am producing the images via ImageDataGenerator : ImageDataGenerator x_data_gen = ImageDataGenerator( horizontal_flip=True, validation_split=0.2) And I am producing the samples via a python generator: def image_sampler(datagen, batch_size, subset="training"): for imgs in datagen.flow_from_directory('data/r_cropped', batch_size=batch_size, class_mode=None, seed=1, subset=subset): g_y = noises = bw_images = for i in imgs: # append to expected output the original image g_y.append(i/255.0) noises.append(generate_noise(1, 256, 3)[0]) bw_images.append(iu_rgb2gray(i)) yield(np.array([noises, bw_images]), np.array(g_y)) When trying to train the model with: gene...
