No module named 'DCNv3'
ModuleNotFoundError: No module named 'DCNv3'
Hi, have you compiled the DCNv3 cuda operator?
cd ./ops_dcnv3
sh ./make.sh
# unit test (should see all checking is True)
python test.py
Your answer has helped me, thanks!
Closing this issue as there has been no activity. Please feel free to reopen if required. Thanks for your feedback and support.
Hi, have you compiled the DCNv3 cuda operator?
cd ./ops_dcnv3 sh ./make.sh # unit test (should see all checking is True) python test.py
Hi, I have followed this step. however when I run the test.py. I got :
import DCNv3 ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory.
Do you know how to solve this?
find the install path of DCNv3
then let python can find it
- you can add some lines in test.py as follows:
import sys sys.path.append('/usr/lib/python3.8/site-packages/DCNv3-1.0-py3.8-linux-x86_64.egg') - or add it to environment variables like this:
export PYTHONPATH=/usr/lib/python3.8/site-packages/DCNv3-1.0-py3.8-linux-x86_64.egg':$PYTHONPATHreference from https://ask.csdn.net/questions/8063862