Unable to load dataset using ImageFolder

my torch version: 1.5.0+cu92
my torchvision version: 0.6.0+cu92

I have attached the screenshots of my folder structure and error
and I have also tried this on google colab with same folder structure and it works but its not working on my local system.

Also I have noticed a strange behaviour, when i renamed my folder from ‘train_data’ to ‘sample’, it works! but how is this possible and then again after remaning to something else, it is not working.

\t is an escape character and will add a tab to your string.
Try to use ./train_data instead.

1 Like

It worked :slight_smile: