I am trying to use the code there: https://www.tensorflow.org/tutorials/generative/cyclegan on my own data.
In this tutorial a Dataset object is created with this code:
dataset, metadata = tfds.load('cycle_gan/horse2zebra',
with_info=True, as_supervised=True)
train_horses, train_zebras = dataset['trainA'], dataset['trainB']
test_horses, test_zebras = dataset['testA'], dataset['testB']
I cannot figure out how to create a similar object from my own data which are in folder like:
data/trainA
data/trainB
data/testA
data/testB
Is there a method that would looks like the flow_from_directory method in order to load my data with the same format as tfds.load(...)
Something that would looks like
train_horses = foo("data/trainA")