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

the problem of test #122

Open
StellaGAN opened this issue Sep 21, 2019 · 1 comment
Open

the problem of test #122

StellaGAN opened this issue Sep 21, 2019 · 1 comment

Comments

@StellaGAN
Copy link

$ python test_RFB.py -d VOC -v RFB_vgg -s 300 --trained_model /path/to/model/weights
Traceback (most recent call last):
File "test_RFB.py", line 157, in
state_dict = torch.load(args.trained_model)
File "/home/d302/anaconda3/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/serialization.py", line 381, in load
f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/model/weights'
(would you tell me how to slove this testing problem?)

@Damon2019
Copy link

You should specify the path to the model
for example:
python test_RFB.py -d VOC -v RFB_vgg -s 300 -m output/RFB_vgg_VOC_epoches_100.pth

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