-
Notifications
You must be signed in to change notification settings - Fork 170
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
error in run.py #26
Comments
It could be that the state dict got corrupted. The md5 hashes of them should be as follows.
Can you check and see whether the md5 hashes of yours matches these? |
Thanks! These two files have the same md5 value. That may be the problem and how can I solve it? |
I am afraid that I am confused. You said that your files have the same md5 hash and note that this could be the underlying problem. Did you mean to say that your files have different md5 hashes? Should they differ then I would recommend downloading the models again. Should they match then you might want to consider the following discussion: CSAILVision/places365#25 (comment) |
Are you behind a firewall that alters your downloads by chance? |
The problem is that the model files were downloaded incompletely before. I download them again in another way. Thanks for your help and your wonderful work! |
Traceback (most recent call last):
File "run.py", line 172, in
moduleNetwork = Network().cuda().eval()
File "run.py", line 124, in init
self.load_state_dict(torch.load('network-' + arguments_strModel + '.pytorch'))
File "/home/ubuntu/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/serialization.py", line 358, in load
return _load(f, map_location, pickle_module)
File "/home/ubuntu/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/serialization.py", line 532, in _load
magic_number = pickle_module.load(f)
_pickle.UnpicklingError: invalid load key, '<'.
When I run the file run.py, the error above occurred. Hope someone can help me.
The text was updated successfully, but these errors were encountered: