For my first Pytorch project, I have to perform image classification using a dataset containing jpg image of clouds. Im am struggling with data importation, because the train/validation/test sets are not separated and the images are located in different folders according to their class. So, the folders structure looks like this:
-dataset_folder
-Class_1
img1
img2
...
-Class_2
img1
img2
...
-Class_3
img1
img2
...
-Class_4
img1
img2
...
I saw that the ImageFolder() class could handle this kind of folder structure, but I have no idea how to combine this with separating the dataset into 3 parts.
Can someone please show me a way to do this ?