I’m using the ImageFolder class provided by Pytorch to load a dataset. The dataset is under a the folder
/home/user/faces_emore/imgs/
which contains all the subfolders to the images.
While training, my program exited with an unusual error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/data/faces_emore/imgs/1:85/85337.jpg'
Which is completely out of the blue because this occurred in the second epoch - after the first epoch was completely with no errors. I searched for ‘85337.jpg’ in my dataset and found that it is under the subfolder
'/home/user/data/faces_emore/imgs/1285/85337.jpg'
meaning that the ‘2’ was somehow replaced with a ‘:’ during training…?
I’m curious if anyone has encountered this or anything similar.
Thanks