mmagic
mmagic copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: 'data/REDS/train_sharp_bicubic/X4/000/00000000.png'
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
You can check your working directory. Usually, we launch training at the root directory of mmediting.
I met the same problem, but the working directory is right.
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.
I met the Same problem, although I use the full path of the target file, it still not working.
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.
@Z-Fran Please check this issue.
This bug will be resolved in this PR.