Skip to content

Implement Deformable Convolutions #1416

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

Closed
fmassa opened this issue Oct 5, 2019 · 8 comments
Closed

Implement Deformable Convolutions #1416

fmassa opened this issue Oct 5, 2019 · 8 comments

Comments

@fmassa
Copy link
Member

fmassa commented Oct 5, 2019

Discussion in pytorch/pytorch#15864

The operator should have both CPU and CUDA implementations.

@Ridhwanluthra
Copy link

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.

@fmassa
Copy link
Member Author

fmassa commented Oct 7, 2019

@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 #1348 for an example

@pedrofreire
Copy link
Contributor

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

@pedrofreire
Copy link
Contributor

I am working on this :)

@zhiqwang
Copy link
Contributor

zhiqwang commented Nov 12, 2019

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?

@pedrofreire
Copy link
Contributor

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 :)

@Ridhwanluthra
Copy link

@pedrofreire Thanks so much for picking this up.

@fmassa
Copy link
Member Author

fmassa commented Dec 5, 2019

Fixed by @pedrofreire in #1586

@fmassa fmassa closed this as completed Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants