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, 'v'. #11

Closed
TomChow01 opened this issue Feb 13, 2021 · 2 comments
Closed

pickle.UnpicklingError: invalid load key, 'v'. #11

TomChow01 opened this issue Feb 13, 2021 · 2 comments

Comments

@TomChow01
Copy link

I keep getting pickle.UnpicklingError: invalid load key, 'v'. error when I'm trying to run the evaluate_images.py

@TomChow01
Copy link
Author

** Here are the details:**

(semantic_segmentation) C:\Users\raghaver\Desktop\tamal\Codes\SemanticSegmentation-master>python evaluate_images.py --images ~/SampleImages/ --model pretrained/model_segmentation_skin_30.pth --model-type FCNResNet101 --save
INFO:root:loading FCNResNet101 from pretrained/model_segmentation_skin_30.pth
Traceback (most recent call last):
File "evaluate_images.py", line 58, in
model = load_model(models[args.model_type], torch.load(args.model))
File "C:\Users\raghaver\Anaconda3\envs\semantic_segmentation\lib\site-packages\torch\serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\raghaver\Anaconda3\envs\semantic_segmentation\lib\site-packages\torch\serialization.py", line 763, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.

@WillBrennan
Copy link
Owner

This is usually because of git-lfs. Check the model weights have been correctly downloaded.

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