svip-lab / LBYLNet

[CVPR2021] Look before you leap: learning landmark features for one-stage visual grounding.
47 stars 9 forks source link

Trained models pickle files corrupted? #8

Closed dreichCSL closed 3 years ago

dreichCSL commented 3 years ago

Hi,

I've tried loading a few of your provided model files from https://drive.google.com/drive/folders/1ICLArOUtWAx_W9nfn7uwobdtIkmN_RoA

but can't get them to load, neither when using your code (demo and evaluation) nor when just trying to pickle.load() the file normally. There's an error saying (when using your code):

lib/python3.7/site-packages/torch/serialization.py", line 755, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.

Last line is the same when just trying with pickle.load() in regular python. This happens for all your model files I tried. How were those files created? Knowing this might help resolve the issue.

Thanks!

dreichCSL commented 3 years ago

Never mind, this is related to how the files are downloaded. Something is apparently corrupting the files when not downloading via browser. Closing.