DuncanZauss / Keypoint_Communities

[ICCV '21] In this repository you find the code to our paper "Keypoint Communities".
MIT License
268 stars 17 forks source link

I can‘t run the demo #16

Closed llllljw closed 1 year ago

llllljw commented 1 year ago

Hey, why I run python3 -m openpifpaf.predict docs/11790.jpg --checkpoint=shufflenetv2k30-wholebody --line-width=2 --show, it shows: Traceback (most recent call last): File "/home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/runpy.py", line 111, in _get_module_details import(pkg_name) File "/home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/site-packages/openpifpaf/init.py", line 11, in cpp_extension.register_ops() File "/home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/site-packages/openpifpaf/cpp_extension.py", line 26, in register_ops torch.ops.load_library(ext_specs.origin) File "/home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/site-packages/torch/_ops.py", line 104, in load_library ctypes.CDLL(path) File "/home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/ctypes/init.py", line 382, in init self._handle = _dlopen(self._name, mode) OSError: /home/jiawen/anaconda3/envs/KPTCOM/lib/python3.9/site-packages/openpifpaf/_cpp.so: undefined symbol: _ZN5torch6detail10class_baseC2ERKSsS3_SsRKSt9typeinfoS6 Could u pls help me

llllljw commented 1 year ago

maybe i didn‘t install torch, I install openpifpaf again, and the error seems disappear

DuncanZauss commented 1 year ago

Great that you resolved the issue!