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

error when loading the pretrained model #101

Open
TomSheng21 opened this issue Oct 13, 2021 · 1 comment
Open

error when loading the pretrained model #101

TomSheng21 opened this issue Oct 13, 2021 · 1 comment

Comments

@TomSheng21
Copy link

when I load the pretrained model which is downloaded from

http://vllab.ucmerced.edu/ytsai/CVPR18/DeepLab_resnet_pretrained_init-f81d91e8.pth

then torch.load() will report an error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data1/xxx/software/anaconda3/envs/torch18/lib/python3.8/site-packages/torch/serialization.py", line 593, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/data1/xxx/software/anaconda3/envs/torch18/lib/python3.8/site-packages/torch/serialization.py", line 779, in _legacy_load
    deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF, expected 278891 more bytes. The file might be corrupted.

Is the online model incomplete?

@HuanyuYang02
Copy link

Hi, I got the similar problem. Could you let me know if you found any solution?Thank you.

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