UnpicklingError: invalid load key, '<'.
See original GitHub issueWhen running in the Colab Notebook :
model = model_type.model(backbone=backbone(pretrained=True), num_classes=len(parser.class_map), **extra_args)
Getting the following error. Hope you may kindly suggest how to fix this!
load checkpoint from local path: checkpoints/vfnet/vfnet_r50_fpn_mstrain_2x_coco_20201027-7cc75bd2.pth
---------------------------------------------------------------------------
UnpicklingError Traceback (most recent call last)
[<ipython-input-10-696c7b7efa47>](https://localhost:8080/#) in <module>()
1 # Instantiate the model
----> 2 model = model_type.model(backbone=backbone(pretrained=True), num_classes=len(parser.class_map), **extra_args)
7 frames
[/usr/local/lib/python3.7/dist-packages/torch/serialization.py](https://localhost:8080/#) in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
775 "functionality.")
776
--> 777 magic_number = pickle_module.load(f, **pickle_load_args)
778 if magic_number != MAGIC_NUMBER:
779 raise RuntimeError("Invalid magic number; corrupt file?")
UnpicklingError: invalid load key, '<'.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
What causes the error "_pickle.UnpicklingError: invalid load ...
UnpicklingError : invalid load key, ''. ... I received a similar error while loading a pickled sklearn model. The problem was that the...
Read more >_pickle.UnpicklingError: invalid load key, '<' · Issue #49 ...
Hi all! while running run_placesCNN_basic.py, this error comes up Traceback (most recent call last): File "run_placesCNN_basic.py", line 31, ...
Read more >_pickle.UnpicklingError: invalid load key, '\x00' - Google Groups
I am using Similarity class to calculate similarity between two sets of documents, but get a pickle issue which I have no idea...
Read more >(Solved) Running test_submission.py runs into _pickle ...
UnpicklingError : invalid load key, 'v'. This is the docker log: (venv) master@wx-87:~/PycharmProjects/justpaulsai$ docker run -it -v ...
Read more >_pickle.unpicklingerror: invalid load key, 'v'. - You.com - You.com
I have deployed a ML model in Heroku. But i am getting application error. I am getting the below error from the logs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jlvahldiek we are in the process of fixing this on the IceVision repo.
If you’re in a hurry, here is a Colab notebook as a workaround to make VFNet work again.
https://colab.research.google.com/gist/dnth/aea556c86ee3ca2e812ceb5eb8968caa/getting_started_object_detection.ipynb
Which version of IceVision are you running on? Try installing IceVision from the master branch and see if this still happens.