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

difference between DCNv2 and deform_conv2d in torchvision #124

Open
sparshgarg23 opened this issue Apr 25, 2022 · 3 comments
Open

difference between DCNv2 and deform_conv2d in torchvision #124

sparshgarg23 opened this issue Apr 25, 2022 · 3 comments

Comments

@sparshgarg23
Copy link

Since both torchvision's deform_conv2d and this repo tend to replicate the deformable convolutional net,would like to know what seperates this implementation from the torch implementation.

@DonggeunYu
Copy link

DonggeunYu commented May 9, 2022

What's the difference?

@ibayer
Copy link

ibayer commented May 25, 2022

@Licht-T

Thanks for contributing pytorch/vision#2791 to torchvision! We are wondering if we could use your
torchvision implementation as drop in replacement for the cuda extension in DCNv2.

I think this would require replacing

with their torchvision equivalents.

The same question has bee raised elsewhere as well lucasjinreal/DCNv2_latest#29.

Would be great to get you thoughts on using your torchvision implementation here. This might eliminate the need to compile the cuda extension and therefore simply integration of DCNv2 a lot.

Implementation in torchvision

edit: add links to torchvision docs

@ibayer
Copy link

ibayer commented May 26, 2022

Not yet tested but the README sounds promising:

PyTorch Deformable Convolutional Networks v2 (no compile required)
This is developed for use with FairMOT inference.
Referenced PyTorch-Deformable-Convolution-v2 for the use of torchvision.ops.deform_conv2d.
Referenced DCNv2 for the class constructor signature.

https://github.com/liyier90/pytorch-dcnv2

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

3 participants