MichiganCOG / ViP

Video Platform for Action Recognition and Object Detection in Pytorch
MIT License
220 stars 37 forks source link

config error #49

Closed Byronnar closed 4 years ago

Byronnar commented 4 years ago

When I run python eval.py --cfg_file models/c3d/config_test.yaml:

Traceback (most recent call last): File "eval.py", line 132, in eval(args) File "eval.py", line 62, in eval model = create_model_object(args).to(device) File "/home/byronnar/pyprojects/cv/video_re/models/models_import.py", line 30, in create_model_object model = getattr(module, dir(module)[model_index])(kwargs) File "/home/byronnar/pyprojects/cv/video_re/models/c3d/c3d.py", line 56, in init self.__load_pretrained_weights() File "/home/byronnar/pyprojects/cv/video_re/models/c3d/c3d.py", line 128, in __load_pretrained_weights p_dict = torch.load('weights/c3d-pretrained.pth') File "/home/byronnar/anaconda3/envs/vip/lib/python3.6/site-packages/torch/serialization.py", line 387, in load return _load(f, map_location, pickle_module, pickle_load_args) File "/home/byronnar/anaconda3/envs/vip/lib/python3.6/site-packages/torch/serialization.py", line 581, in _load deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly) RuntimeError: unexpected EOF, expected 25948574 more bytes. The file might be corrupted. terminate called after throwing an instance of 'c10::Error' what(): owning_ptr == NullType::singleton() || owningptr->refcount.load() > 0 ASSERT FAILED at /pytorch/c10/util/intrusive_ptr.h:350, please report a bug to PyTorch. intrusive_ptr: Can only intrusive_ptr::reclaim() owning pointers that were created using intrusive_ptr::release(). (reclaim at /pytorch/c10/util/intrusive_ptr.h:350) frame #0: std::function<std::string ()>::operator()() const + 0x11 (0x7f5186cc9441 in /home/byronnar/anaconda3/envs/vip/lib/python3.6/site-packages/torch/lib/libc10.so) frame #1: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x2a (0x7f5186cc8d7a in /home/byronnar/anaconda3/envs/vip/lib/python3.6/site-packages/torch/lib/libc10.so) frame #2: THStorage_free + 0xca (0x7f510dab629a in /home/byronnar/anaconda3/envs/vip/lib/python3.6/site-packages/torch/lib/libcaffe2.so) frame #3: + 0x149bbd (0x7f5187277bbd in /home/byronnar/anaconda3/envs/vip/lib/python3.6/site-packages/torch/lib/libtorch_python.so)

frame #21: __libc_start_main + 0xe7 (0x7f518be4ab97 in /lib/x86_64-linux-gnu/libc.so.6) What should I do to solve this problem? my devices: os 1804 cuda 9.0 cudnn 7.3.1 python 3.6
ehofesmann commented 4 years ago

Which version of pytorch are you using?

Byronnar commented 4 years ago

Thank for your reply. My pytorch version is 1.1.0

natlouis commented 4 years ago

It looks like your weights file may be corrupted. Try downloading the file again, the link is here: https://github.com/MichiganCOG/ViP/blob/master/weights/download_weights.sh#L9