I am trying to load images from folder using dataloader but its giving me below error. Not sure why its happening…I am completely novice in pytorch…please suggest what is the potential solution for this.
folder structure:-
./data/Disguised/Set/
./data/Original/Set/
All images are present under this hierarchy in jpg format.
O
SError: Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in _worker_loop
  File "/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 138, in <listcomp>
  File "/anaconda3/lib/python3.7/site-packages/torchvision/datasets/folder.py", line 132, in __getitem__
    sample = self.loader(path)
  File "/anaconda3/lib/python3.7/site-packages/torchvision/datasets/folder.py", line 178, in default_loader
    return pil_loader(path)
  File "/anaconda3/lib/python3.7/site-packages/torchvision/datasets/folder.py", line 160, in pil_loader
    img = Image.open(f)
  File "/anaconda3/lib/python3.7/site-packages/PIL/Image.py", line 2687, in open
OSError: cannot identify image file <_io.BufferedReader name='./data/Disguised/set/Marisa_Tomei_h_003.jpg'>