Vision: Implement Deformable Convolutions

Created on 5 Oct 2019  路  8Comments  路  Source: pytorch/vision

Discussion in https://github.com/pytorch/pytorch/issues/15864

The operator should have both CPU and CUDA implementations.

enhancement help wanted ops

Most helpful comment

I am familiar with the DCN implementation in mmdetection and I would be happy to include that in torchvision. Please let me know if no one else is working on it.

All 8 comments

I am familiar with the DCN implementation in mmdetection and I would be happy to include that in torchvision. Please let me know if no one else is working on it.

@Ridhwanluthra no one else is currently working on it, so contributions are more than welcome!

Note that it should now ideally follow the approaches that we have in torchvision for custom operators, which allow them to be part of torchscript graph, see https://github.com/pytorch/vision/pull/1348 for an example

@Ridhwanluthra
Are you working on it? I was considering having a look at it otherwise :)

I am working on this :)

Hi,

https://github.com/facebookresearch/detectron2/blob/b54486e7cee607a968c974de4e0e95c39ffc834e/detectron2/layers/csrc/deformable/deform_conv_cuda.cu#L20

I saw there have DCN implementation in detectron2, is there any plan to merge this implementation here?

Cool, thanks for letting us know! Yeah, so it seems the detectron2 incorporated the code from mmdetection, which is the implementation I'm also basing myself on, so in some sense I'm already merging it! I'm also planning to add testing, a CPU version, and improve code readability a bit :)

@pedrofreire Thanks so much for picking this up.

Fixed by @pedrofreire in #1586

Was this page helpful?
0 / 5 - 0 ratings