I want to transform images and masks together. I used the same example in the tensorflow tutorial ImageDataGenerator.
Here is my code:
from tensorflow.