facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
29.3k stars 7.32k forks source link

from . import deform_conv_cuda,ImportError: /home/user/repos/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x86_64-linux-gnu..so: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32EI want to know the problem with this mmdet installation, my CUDA version is 10.1, pytorch version is 1.7.0, mmcv-full1.7.1 installed, mmdet2.10.0, if there is no other than the version is correct, but there is still this problem, it really crashes #5302

Open cycj2021 opened 3 weeks ago

cycj2021 commented 3 weeks ago

📚 Documentation Issue

This issue category is for problems about existing documentation, not for asking how-to questions.

Programmer-RD-AI commented 3 weeks ago

Hi, This issue is mainly from mmdetection which is also used in detectron2... So it would help if you create an issue there is the following does not work.. :)

The following just pretty much reinstalls the packages but in regards to your CUDA versions, this issue mainly center's around the version mismatches, so try the following if not try and check up on if the versions you have support each other...

pip uninstall mmcv-full mmdet CUDA_HOME=/usr/local/cuda-10.1 pip install mmcv-full==1.7.1 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html pip install mmdet==2.10.0

Hope this helps Thank you