DeepVideoCS
DeepVideoCS copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: "'./download/fc4.pth.tar'"
Hello, I want to reproduce the work, but I get this error when I run test.py. However, I indeed put it in this folder. And another question is that I can't unzip the package fc4 and fc7. Can you give me some advices? Thank you very much!
Hi, you don't need to unzip the model file, you just have to pass it as an argument to the command line: python test.py './download/papers_video' fcnet 7 './download/model_best.pth.tar' --save_videos='./output_videos' --gpu_id 0
Thank you for your reply! Indeed, I run the test.py as your instruction, but I got this error:FileNotFoundError: [Errno 2] No such file or directory: "'./download/model_best.pth.tar'" What does this means? Where is the model_best.pth.tar come from? Could you please give me some advices again?
Thanks. My mistake, the name of the file when you download fc7 model is fc7.pth.tar and this is the name that you should use in the test.py and not the model_best.pth.tar. I will correct this in README
OK, thanks! However, another issue is waitting to be solved. When I run: python test.py './download/papers_video' fcnet 7 './download/fc7.pth.tar' --save_videos='./output_videos' --gpu_id 0. I got this error: FileNotFoundError: [Errno 2] No such file or directory: "'./download/fc7.pth.tar'". But I indeed put the fc7.pth.tar in this folder. I'm thinking wheather the model file has been destoried so that the code cannot find this file. Could you please give me some advices more?
what happens if you don't put the model file under the 'download' folder and you put it under the folder you put the other files?