I’m facing the same problem when running this sample: https://github.com/NVIDIA/retinanet-examples
I build my pytorch from source, and have set the _GLIBCXX_USE_CXX11_ABI to be False. Then I built the extension, but when running it, this error occurs:
Traceback (most recent call last):
File "/ssd2/exec/xiaoyunlong/code/retinanet-examples/retinanet/main.py", line 10, in <module>
from retinanet import infer, train, utils
File "/ssd2/exec/xiaoyunlong/anaconda3/lib/python3.7/site-packages/retinanet/infer.py", line 13, in <module>
from .model import Model
File "/ssd2/exec/xiaoyunlong/anaconda3/lib/python3.7/site-packages/retinanet/model.py", line 8, in <module>
from ._C import Engine
ImportError: /ssd2/exec/xiaoyunlong/anaconda3/lib/python3.7/site-packages/retinanet/_C.so: undefined symbol: _ZN2cv8fastFreeEPv
I have checked the _GLIBCXX_USE_CXX11_ABI by torch._C._GLIBCXX_USE_CXX11_ABI
and it outputs False
.
Am I missing something? or did something wrong?