I have two numpy variable that contains image and label data respectively. There is 500 labeled image, shape of every image is 240 x 240.
import numpy as np
images = np.random.randint(4, size=(500,240,240))
labels = np.random.rand(500,240,240)
How can I manke a Keras generator for model training? Thanks in advance for your help.