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, '<'. run in google colab #122

Open
kirdik opened this issue May 11, 2021 · 4 comments
Open

_pickle.UnpicklingError: invalid load key, '<'. run in google colab #122

kirdik opened this issue May 11, 2021 · 4 comments

Comments

@kirdik
Copy link

kirdik commented May 11, 2021

I'm trying to run in google colab. Basic startup throws this error. All models are downloaded and placed in the model folder.
python test.py
Traceback (most recent call last): File "test.py", line 15, in <module> model.load_state_dict(torch.load(model_path), strict=True) File "/usr/local/lib/python3.7/dist-packages/torch/serialization.py", line 593, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/usr/local/lib/python3.7/dist-packages/torch/serialization.py", line 762, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.

@Jeejo-Joy
Copy link

Getting this same error with google collab, however it works locally.

In I tried loading directly from pickle still same error.

image

@Jeromedebruyn
Copy link

@kirdik I have the same error, did you every manage to solve it?

@DuyguSerbes
Copy link

Hello, did you solve the problem? I am getting the same error.

@Haadia-a
Copy link

Haadia-a commented Jul 1, 2022

@kirdik @Jeejo-Joy did you guys manage to find a solution? Please share

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

5 participants