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, '<' #49

Closed
zhangmy23 opened this issue May 23, 2018 · 16 comments
Closed

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

zhangmy23 opened this issue May 23, 2018 · 16 comments

Comments

@zhangmy23
Copy link

Hi all!
while running run_placesCNN_basic.py, this error comes up
Traceback (most recent call last):
File "run_placesCNN_basic.py", line 31, in
checkpoint = torch.load(model_file, map_location=lambda storage, loc: storage)
File "/home/pytorch_py35/lib/python3.5/site-packages/torch/serialization.py", line 267, in load
return _load(f, map_location, pickle_module)
File "/home/pytorch_py35/lib/python3.5/site-packages/torch/serialization.py", line 412, in _load
magic_number = pickle_module.load(f)
_pickle.UnpicklingError: invalid load key, '<'.
Any advice? Thanks!

@zhoubolei
Copy link
Collaborator

This issue might be helpful

@Dhanasekar-S
Copy link

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

The error still persists. Any other solutions?

@xiaoluojun
Copy link

UnpicklingError: invalid load key, '<'.
Any other solutions?

@seungjun-moon
Copy link

same here

@deshmukhps95
Copy link

pickle.UnpicklingError: invalid load key, '\x0d'.
getting above error

@ldaumail
Copy link

Any solution found so far?

@CarolinGao
Copy link

This error may caused by your fragmentary model.

@swuxyj
Copy link

swuxyj commented May 29, 2020

i solved this problem by re-downloading the model

@tiandao091
Copy link

i solved this problem by re-downloading the model

model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=(True))
how to re-downloading the model?

@ANABUR920
Copy link

still cannot fix, any solution found so far? It seems that the PyTorch version issues...

@brando90
Copy link

related: learnables/learn2learn#310

@JatasyaR
Copy link

_pickle.UnpicklingError: invalid load key, '%'.

how to deal with this?

@niknah
Copy link

niknah commented May 19, 2022

.

@Oulsjeg
Copy link

Oulsjeg commented Jun 4, 2022

Any solution yet to the 'UnpicklingError: invalid load key, '<''?

@giveloves
Copy link

Check your torch version. I solved this by upgrading my torch to 1.8.2. It is said in README that the version of torch needs to be higher than 1.3.0.

@Ahmoudahmed
Copy link

_pickle.UnpicklingError: invalid load key, '\x19'.

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