RuntimeError: storage has wrong size
See original GitHub issueI got this in the prediction section
(bmt) root@ABC001:/data/zuyuehan/project/BMT# python ./sample/single_video_prediction.py --prop_generator_model_path ./sample/best_prop_model.pt --pretrained_cap_model_path ./sample/best_cap_model.pt --vggish_features_path ./test/pandemic_vggish.npy --rgb_features_path ./test/pandemic_rgb.npy --flow_features_path ./test/pandemic_flow.npy --duration_in_secs 99 --device_id 0 --max_prop_per_vid 100 --nms_tiou_thresh 0.4 Contructing caption_iterator for "train" phase Using vanilla Generator initialization: xavier Glove emb of the same size as d_model_caps Traceback (most recent call last): File "./sample/single_video_prediction.py", line 281, in <module> args.device_id, args.prop_generator_model_path, args.pretrained_cap_model_path, args.max_prop_per_vid File "./sample/single_video_prediction.py", line 94, in load_prop_model checkpoint = torch.load(prop_generator_model_path, map_location='cpu') File "/root/anaconda3/envs/bmt/lib/python3.7/site-packages/torch/serialization.py", line 386, in load return _load(f, map_location, pickle_module, **pickle_load_args) File "/root/anaconda3/envs/bmt/lib/python3.7/site-packages/torch/serialization.py", line 580, in _load deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly) RuntimeError: storage has wrong size: expected 0 got 512
I need your help, and I’d appreciate it if you could help me.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Thank you very much indeed. According to your suggestion, I found that the MD5 code of the.pt file I uploaded to the server was wrong. After I re-uploaded the correct.PT file, I ran it successfully.You are such a good man. You have been very helpful to me as a beginner.
No problem. Good luck with your endeavors!
Closing this.