Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

UnpicklingError: invalid load key, 'H' #79

Open
HsiaX opened this issue Apr 11, 2019 · 8 comments
Open

UnpicklingError: invalid load key, 'H' #79

HsiaX opened this issue Apr 11, 2019 · 8 comments

Comments

@HsiaX
Copy link

HsiaX commented Apr 11, 2019

I met an error information like this:

File "/usr/local/lib/python3.5/dist-packages/torch/serialization.py", line 399, in _load
magic_number = pickle_module.load(f)

UnpicklingError: invalid load key, 'H'

Is there anybody can tell me how to solve it??? Thanks very muck!!!

@HsiaX
Copy link
Author

HsiaX commented Apr 11, 2019

Aha I've solved it. I download a ".h5" pre-trained model which is not match the pytorch, then I download the ".pth" file and it can work now! Anyway thanks all of you :-D

@zhangbin01
Copy link

hello, i have the same problem as you. And thank you to solve the problem, but i can not find the '.pth' folder, can you give me one?

@HsiaX
Copy link
Author

HsiaX commented May 31, 2019

hello, i have the same problem as you. And thank you to solve the problem, but i can not find the '.pth' folder, can you give me one?

I download it from Google, to prevent that you may unable to download, I deposited it on Baidu Netdisk, here is the link: https://pan.baidu.com/s/1A2hz5FWemsZWp-qi7U_abw, and password: 340c.

@zhangbin01
Copy link

wow~ ⊙o⊙,thank you very much!

@zhangbin01
Copy link

hello, the files you shared with me is 'mask_rcnn_coco.h5', not 'mask_rcnn_coco.pth'. but i find the file ('mask_rcnn_coco.pth'). Do you need it?
你好, 您分享的是 mask_rcnn_coco.h5 ,不是mask_rcnn_coco.pth文件,但是我已经找到了pth文件,请问您还需要吗?我可以分享您一份。

@HsiaX
Copy link
Author

HsiaX commented May 31, 2019

hello, the files you shared with me is 'mask_rcnn_coco.h5', not 'mask_rcnn_coco.pth'. but i find the file ('mask_rcnn_coco.pth'). Do you need it?
你好, 您分享的是 mask_rcnn_coco.h5 ,不是mask_rcnn_coco.pth文件,但是我已经找到了pth文件,请问您还需要吗?我可以分享您一份。

really??? i'm sure the file i deposited is '.pth', it's so strange. no need thanks, i already have it (´・ᴗ・`)

@dppselena
Copy link

@zhangbin01 您好,您现在还保存有pth的预训练模型,可以分享一份吗?感谢您,盼复!

@jf0391
Copy link

jf0391 commented Jul 28, 2022

@HsiaX 你好,还有.pth的预训练模型么?希望可以百度网盘分享以下,谢谢,期待你的回复

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants