Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'deform_conv_cuda' from 'mmdet.ops.dcn' (/content/drive/MyDrive/AerialDetection/mmdet/ops/dcn/__init__.py) #97

Open
Nirkan opened this issue Jan 26, 2022 · 1 comment

Comments

@Nirkan
Copy link

Nirkan commented Jan 26, 2022

Hi,

I am getting an error on running the following lines on google colab. May be someone else faced this issue before.

  1. !python tools/test.py configs/DOTA/faster_rcnn_RoITrans_r50_fpn_1x_dota.py
    work_dirs/faster_rcnn_RoITrans_r50_fpn_1x_dota/epoch_12.pth --out work_dirs/faster_rcnn_RoITrans_r50_fpn_1x_dota/results.pkl

  2. !python tools/train.py configs/DOTA/faster_rcnn_h-obb_r50_fpn_1x_dota.py --work_dir work_dirs/

Error :

ImportError: cannot import name 'deform_conv_cuda' from 'mmdet.ops.dcn' (/content/drive/MyDrive/AerialDetection/mmdet/ops/dcn/init.py)

I am using :

python : 3.7.12
pytorch : 1.10.0+cu111
cuda : 11.2
gcc : 7.5.0
nccl : 2.10.3
mmcv : 1.4.4

I guess I followed the instructions based on the Github repository.

@prayagpawar
Copy link

prayagpawar commented Nov 14, 2022

deform_conv_cuda files are compiled by this step compile.sh probably compilation is failing because cuda and gcc and nccl .Your cuda version is very high 11.2.
To fix this use you can try this pytorch 1.2.0, py3.7,cuda10.0.130,cudnn7.6.2 ,cudatoolkit 10.0.130
libgcc-ng 7.3.0 ,nccl 2.8.3.1 ,mmcv 0.4.3 ,mmdet 0.6.0+fbb7726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants