zju3dv / SMAP

[ECCV 2020] SMAP: Single-Shot Multi-Person Absolute 3D Pose Estimation
Apache License 2.0
241 stars 37 forks source link

loading model error #5

Closed leonzgtee closed 4 years ago

leonzgtee commented 4 years ago

with torch==1.4.0 and torchvision==0.5.0 when i run the test.sh, an error occured. it seems that the model you provided is not comparable with the torch==1.4.0 however,when i update the torch to version 1.5.0, i can not install the dapalib package. have you met this, and how should i do to solve this problem, thanks.

error are as follows: Traceback (most recent call last): File "test.py", line 225, in main() File "test.py", line 210, in main state_dict = torch.load(model_file, map_location=lambda storage, loc: storage) File "/home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/serialization.py", line 527, in load with _open_zipfile_reader(f) as opened_zipfile: File "/home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/serialization.py", line 224, in init super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_orbuffer)) RuntimeError: version <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:132) frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7fa59fec9193 in /home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/lib/libc10.so) frame #1: caffe2::serialize::PyTorchStreamReader::init() + 0x1f5b (0x7fa5320e29eb in /home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/lib/libtorch.so) frame #2: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::string const&) + 0x64 (0x7fa5320e3c04 in /home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/lib/libtorch.so) frame #3: + 0x6c53a6 (0x7fa5a09e13a6 in /home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/lib/libtorch_python.so) frame #4: + 0x2961c4 (0x7fa5a05b21c4 in /home/zhuguotao/software/anaconda3/envs/pose/lib/python3.6/site-packages/torch/lib/libtorch_python.so)

frame #38: __libc_start_main + 0xe7 (0x7fa5aee19b97 in /lib/x86_64-linux-gnu/libc.so.6)