InternImage icon indicating copy to clipboard operation
InternImage copied to clipboard

No module named 'DCNv3'

Open qinliuru opened this issue 3 years ago • 5 comments

ModuleNotFoundError: No module named 'DCNv3'

qinliuru avatar Mar 10 '23 07:03 qinliuru

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

czczup avatar Mar 10 '23 08:03 czczup

Your answer has helped me, thanks!

qinliuru avatar Mar 10 '23 09:03 qinliuru

Closing this issue as there has been no activity. Please feel free to reopen if required. Thanks for your feedback and support.

czczup avatar Mar 12 '23 05:03 czczup

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?

wennyramadha avatar Aug 16 '23 07:08 wennyramadha

Image find the install path of DCNv3 then let python can find it

  1. 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')
  2. 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':$PYTHONPATH reference from https://ask.csdn.net/questions/8063862

DestinyXsy avatar Feb 19 '25 10:02 DestinyXsy