Has anyone ever used the Keras ImageDataGenerator functionality within KNIME, and if so when I run the code to augment new images how do I get this back into the output_table (output from node) so as it can then be used later in the workflow? The output is a zip in Python, but how can then use this within say a KNIME learner or executor node?
image_generator = image_datagen.flow(X_train, seed=randomseed, batch_size=BatchSize, shuffle=True)
mask_generator = mask_datagen.flow(y_train, seed=randomseed, batch_size=BatchSize, shuffle=True)
Just zip the two generators to get a generator that provides augmented images and masks at the same time
train_generator = zip(image_generator, mask_generator)