mmagic icon indicating copy to clipboard operation
mmagic copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'data/REDS/train_sharp_bicubic/X4/000/00000000.png'

Open Ashore-lz opened this issue 2 years ago • 5 comments

why l run basicvsr,train-----FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0. and FileNotFoundError: [Errno 2] No such file or directory: 'data/REDS/train_sharp_bicubic/X4/000/00000000.png' But I have this file inside this project

Ashore-lz avatar Apr 27 '22 12:04 Ashore-lz

You can check your working directory. Usually, we launch training at the root directory of mmediting.

wangruohui avatar Apr 27 '22 14:04 wangruohui

I met the same problem, but the working directory is right.

halfgodxzc avatar Jun 06 '22 20:06 halfgodxzc

Does ls data/REDS/train_sharp_bicubic/X4/000/00000000.png at current working directory output the correct file?

I met the same problem, but the working directory is right.

wangruohui avatar Jun 25 '22 06:06 wangruohui

I met the Same problem, although I use the full path of the target file, it still not working.

MD-20880 avatar Jul 08 '22 16:07 MD-20880

This maybe not related to his problem, but this is the problem I met. The problem seems to be when using os.path.join in windows, the drive letter will be concatenate in format of C:TopDir\\SubDir instead of C:\\TopDir\\SubDir, which is not be able to used as parameter of open() funciton.

I found this problem in file mmedit/apis/restoration_video_inference.py, line 96. I am not sure whether other parts of code have the same problem.

Does ls data/REDS/train_sharp_bicubic/X4/000/00000000.png at current working directory output the correct file?

I met the same problem, but the working directory is right.

MD-20880 avatar Jul 11 '22 12:07 MD-20880

@Z-Fran Please check this issue.

zengyh1900 avatar Oct 09 '22 11:10 zengyh1900

This bug will be resolved in this PR.

Z-Fran avatar Oct 11 '22 09:10 Z-Fran