tsn-pytorch icon indicating copy to clipboard operation
tsn-pytorch copied to clipboard

some strange problem with file not found error

Open ZhaoyangLi-nju opened this issue 5 years ago • 2 comments

File "/home/pytorchVersion/tsn-pytorch/dataset.py", line 108, in get seg_imgs = self._load_image(record.path, p) File "/home/pytorchVersion/tsn-pytorch/dataset.py", line 50, in _load_image return [Image.open(os.path.join(directory, self.image_tmpl.format(idx))).convert('RGB')] File "/home/anaconda3/envs/py36/lib/python3.6/site-packages/PIL/Image.py", line 2477, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: '/data1/Optical-Flows/v_PlayingFlute_g23_c03.mp4/img_00001.jpg' a few images loaded and then this question arise can you help me ?

ZhaoyangLi-nju avatar Apr 08 '19 14:04 ZhaoyangLi-nju

i met the same issue as you ,have you solved it .ths

zejinwang avatar May 06 '19 01:05 zejinwang

It is probably the number of flow frames is minus one of the rgb frames. You can check the split files and actual number of frames in the directories.

JiaMingLin avatar Feb 04 '21 10:02 JiaMingLin