I downloaded a dataset from kaggle and uploaded in colab.
I gave the correct path of the required folder to ImageFolder function.
But it is showing this error
This happens everytime. Whenever I tried to create dataset from the folder path which directly contains images , it doesn’t work. But when I pass the path of the folder which is one level higher than the folder containing the images then it works.
But in this case different folders are containing different kinds of images. So I don’t want to create a single dataset for all of them.
Can someone tell me how can I do this?