InternImage icon indicating copy to clipboard operation
InternImage copied to clipboard

How to use DCNv3 in my own network?

Open Tempesting opened this issue 2 years ago • 1 comments

I've installed the DCNv3 via the whl file, but I don't know how to use it , where can I see instructions for that?

"from DCNv3 import DCNv3 DCNv3(*args)" is wrong.

Tempesting avatar Jul 20 '23 08:07 Tempesting

You should copy the whole folder of dcnv3_ops in your project, and then from ops_dcnv3 import modules as opsm.

https://github.com/OpenGVLab/InternImage/tree/master/detection/ops_dcnv3

You can refer to this file to use DCNv3 in your model.

https://github.com/OpenGVLab/InternImage/blob/master/detection/mmdet_custom/models/backbones/intern_image.py#L377

czczup avatar Jul 20 '23 14:07 czczup