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

Eorror when running "python main.py" with MODEL = 'resnet50' #21

Open
shenw000 opened this issue Jul 21, 2021 · 1 comment
Open

Eorror when running "python main.py" with MODEL = 'resnet50' #21

shenw000 opened this issue Jul 21, 2021 · 1 comment

Comments

@shenw000
Copy link

I first ran "python main.py" command successfully with MODEL='resnet18' in the settings.py, which seems to indicate my environment works correctly.
Nest, I changed the settings.py to MODEL='resnet50' and encountered the following error:

Traceback (most recent call last):
File "main.py", line 8, in
model = loadmodel(hook_feature)
File "/media/sdb1/shenw/sandbox/netdissect/NetDissect-Lite/loader/model_loader.py", line 9, in loadmodel
checkpoint = torch.load(settings.MODEL_FILE)
File "/home/shenw/workspace/anaconda3/envs/pytorch-netdissect2/lib/python3.6/site-packages/torch/serialization.py", line 584, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/shenw/workspace/anaconda3/envs/pytorch-netdissect2/lib/python3.6/site-packages/torch/serialization.py", line 234, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/shenw/workspace/anaconda3/envs/pytorch-netdissect2/lib/python3.6/site-packages/torch/serialization.py", line 215, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'zoo/whole_resnet50_places365_python36.pth.tar'

This error message seems to indicate that I didn't download the model file 'whole_resnet50_places365_python36.pth.tar'.
What is the fix for this error? Where can I find 'zoo/whole_resnet50_places365_python36.pth.tar' from your website?

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

1 participant