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: unpickling stack underflow #56

Open
OlaFosheimGrostad opened this issue Oct 25, 2024 · 0 comments
Open

_pickle.UnpicklingError: unpickling stack underflow #56

OlaFosheimGrostad opened this issue Oct 25, 2024 · 0 comments

Comments

@OlaFosheimGrostad
Copy link

I don't use conda, but installed the libraries as listed in the toml file, which means I used torch 2.5. The checkpoint is not corrupted because downloaded it both from hugging face and from https://ml-site.cdn-apple.com/models/depth-pro/depth_pro.pt .

File "…/depth_pro/depth_pro.py", line 135, in create_model_and_transforms
state_dict = torch.load(config.checkpoint_uri, map_location="cpu")
File "…venv/lib/python3.9/site-packages/torch/serialization.py", line 1384, in load
return _legacy_load(
File "…venv/lib/python3.9/site-packages/torch/serialization.py", line 1628, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: unpickling stack underflow

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

1 participant