ImportError:torchvision/_C.so:undefined symbol:
guobaozi opened this issue · 1 comments
ImportError: /home/guobaozi/anaconda3/envs/PkuNet_apex/lib/python3.7/site-packages/torchvision/_C.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
python3.7
pytorch1.3
cuda10.1
details:
Traceback (most recent call last):
File "demo.py", line 136, in
demo()
File "demo.py", line 116, in demo
outputs = postprocess(outputs, num_class, 0.01, 0.65)
File "/media/guobaozi/C022AA4B225A6D42/guobaozi_cv/ASFF-master/utils/utils.py", line 62, in postprocess
detections_class[:, :4], detections_class[:, 4]*detections_class[:, 5], nms_thre)
File "/home/guobaozi/anaconda3/envs/PkuNet_apex/lib/python3.7/site-packages/torchvision/ops/boxes.py", line 32, in nms
_C = _lazy_import()
File "/home/guobaozi/anaconda3/envs/PkuNet_apex/lib/python3.7/site-packages/torchvision/extension.py", line 12, in _lazy_import
from torchvision import _C as C
ImportError: /home/guobaozi/anaconda3/envs/PkuNet_apex/lib/python3.7/site-packages/torchvision/_C.so: undefined symbol: _ZN3c105ErrorC1ENS_14SourceLocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
reinstall your torchvision may solve the problem.