ERROR:
_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE
或者是:
cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass
解决:
https://github.com/Tramac/awesome-semantic-segmentation-pytorch/issues/24
https://github.com/Tramac/awesome-semantic-segmentation-pytorch/issues/76
solved.
rm -r build, then recompile.
main reason is: I compiled with pytorch1.0.1, then recompile with pytorch1.1 without delete build
folder.
refer to: facebookresearch/maskrcnn-benchmark#421, which is using similiar setup.py.
------------------
在python setup.py install 操作的文件夹下,rm -r build,然后再重新安装就好了。
cd inplace_abn
python setup.py install
cd scripts
pip install -r requirements.txt
AIEarth是一个由众多领域内专家博主共同打造的学术平台,旨在建设一个拥抱智慧未来的学术殿堂!【平台地址:https://devpress.csdn.net/aiearth】 很高兴认识你!加入我们共同进步!