Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: "'./download/fc4.pth.tar'" #3

Open
iPersevere opened this issue Aug 3, 2019 · 5 comments

Comments

@iPersevere
Copy link

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!

@miliadis
Copy link
Owner

miliadis commented Aug 6, 2019

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

@iPersevere
Copy link
Author

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?

@miliadis
Copy link
Owner

miliadis commented Aug 6, 2019

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

@iPersevere
Copy link
Author

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?

@miliadis
Copy link
Owner

miliadis commented Aug 8, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants