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

Unpickling Error #3

Closed
nandinibajaj opened this issue Jul 1, 2021 · 3 comments
Closed

Unpickling Error #3

nandinibajaj opened this issue Jul 1, 2021 · 3 comments

Comments

@nandinibajaj
Copy link

Using Python3.8, PyTorch 1.6 and Cuda 10.2, as specified in the repository. While running the sample registration using pretrained weights provided in the link attached to the repository I encountered the following error :

`Traceback (most recent call last):
  File "inference.py", line 72, in <module>
    rma_net.load_state_dict(torch.load(args.weight),True)
  File "/home/gridraster/anaconda3/envs/rmanet/lib/python3.8/site-packages/torch/serialization.py", line 585, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/home/gridraster/anaconda3/envs/rmanet/lib/python3.8/site-packages/torch/serialization.py", line 755, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.

Can you help me fix this issue?
What is the pickle version used in the repository while pickling the pretrained weights?

@RainbowRui
Copy link
Collaborator

It looks like a version problem of PyTorch. Excuse me. Does installed PyTorch work well on some basic operations?

@nandinibajaj
Copy link
Author

nandinibajaj commented Jul 15, 2021 via email

@RainbowRui
Copy link
Collaborator

Thanks! You are welcome!

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