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

_pickle.UnpicklingError: invalid load key, '<'. #202

Open
DawnChou opened this issue Jul 31, 2020 · 1 comment
Open

_pickle.UnpicklingError: invalid load key, '<'. #202

DawnChou opened this issue Jul 31, 2020 · 1 comment

Comments

@DawnChou
Copy link

When I load the Xception, there is an error signs:
Traceback (most recent call last): File "main.py", line 243, in <module> main(opt) File "main.py", line 216, in main model = TwoStream(opt.num_class, opt.modality, base_model=opt.arch, new_length=opt.sample_duration) File "/home/zouyiping/streams/model.py", line 12, in __init__ self._prepare_base_model(base_model, num_class) File "/home/zouyiping/streams/model.py", line 30, in _prepare_base_model self.base_model = xception() File "/home/zouyiping/streams/models/xception.py", line 216, in xception model.load_state_dict(model_zoo.load_url(settings['url'])) File "/home/zouyiping/software/python3/lib/python3.7/site-packages/torch/hub.py", line 499, in load_state_dict_from_url return torch.load(cached_file, map_location=map_location) File "/home/zouyiping/software/python3/lib/python3.7/site-packages/torch/serialization.py", line 426, in load return _load(f, map_location, pickle_module, **pickle_load_args) File "/home/zouyiping/software/python3/lib/python3.7/site-packages/torch/serialization.py", line 603, in _load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.

can anyone tell me how to solve it?

@Adenialzz
Copy link

same problem, did you solve it?

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