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

Pure python implementation of MultiScaleDeformableAttention #112

Open
bwittmann opened this issue Nov 18, 2021 · 2 comments
Open

Pure python implementation of MultiScaleDeformableAttention #112

bwittmann opened this issue Nov 18, 2021 · 2 comments

Comments

@bwittmann
Copy link

I would have a question regarding the cuda implementation of MultiScaleDeformableAttention. Do you also have a pure python version of MultiScaleDeformableAttention available that does not rely on c++ code?

Thanks in advance!

@kimshun09
Copy link

I found it here.

def ms_deform_attn_core_pytorch(value, value_spatial_shapes, sampling_locations, attention_weights):

But you should use it for debug and test only.
See #9 for more.

@bwittmann
Copy link
Author

Hi @kimshun09,

Thank you very much for your reply! Do you by any chance know by how much the cuda implementation is faster than the python version? Is speed and memory efficiency the only reason?

BR Bastian

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