suppose I have directories like this.
full_dataset
|---horse <= 40 images of horse
|---donkey <= 50 images of donkey
|---cow <= 80 images of cow
|---zebra <= <= 30 images of zebra
Then I write this with tensorflow
image_generator = ImageDataGenerator(rescale=1./255)
my_dataset = image_generator.flow_from_directory(batch_size=32,
directory='full_dataset',
shuffle=True,
target_size=(280, 280),
class_mode='categorical')
But I want to automatically split that file, without manually change the directory to train folder and test folder. I don't want to do manually split it like https://www.tensorflow.org/tutorials/images/classification)
What I have done and Failed
(x_train, y_train),(x_test, y_test) = my_dataset.load_data()