Closed leesangjoon1 closed 3 years ago
https://detectron2.readthedocs.io/en/latest/tutorials/install.html#common-installation-issues has answers:
Undefined symbols that contains TH,aten,torch,caffe2; Missing torch dynamic libraries; Segmentation fault immediately when using detectron2. This usually happens when detectron2 or torchvision is not compiled with the version of PyTorch you’re running. If the error comes from a pre-built torchvision, uninstall torchvision and pytorch and reinstall them following pytorch.org. So the versions will match. If the error comes from a pre-built detectron2, check release notes to see the corresponding pytorch version required for each pre-built detectron2. Or uninstall and reinstall the correct pre-built detectron2. If the error comes from detectron2 or torchvision that you built manually from source, remove files you built (build/, */.so) and rebuild it so it can pick up the version of pytorch currently in your environment.
Instructions To Reproduce the 🐛 Bug: