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

Different query positions on the same image #3

Closed
horanyinora opened this issue May 5, 2021 · 1 comment
Closed

Different query positions on the same image #3

horanyinora opened this issue May 5, 2021 · 1 comment

Comments

@horanyinora
Copy link

Hello,
Thanks for the excellent work. I would like to show different attention maps produced using different query positions (reference bouding boxes).
For example when there are three bouding boxes on the image I would like to calculate the attention w.r.t. them and show the difference. Is it possible to do this?
Screenshot from 2021-05-05 10-32-24

@cmsflash
Copy link
Owner

cmsflash commented May 5, 2021

It is possible. You can simply multiply a specific query to the key feature map to get the query-specific weights for the entire image.

@cmsflash cmsflash closed this as completed May 5, 2021
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