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

How to visualize the attention map for Scene-Inst. Cross-Attention like Figure 5 in the paper? #26

Open
ge95net opened this issue Dec 12, 2024 · 1 comment

Comments

@ge95net
Copy link

ge95net commented Dec 12, 2024

Hi, I am really appreciate the brilliant work!

I just wonder how to visualize the attention map for Scene-Inst. Cross-Attention like Figure 5 in the paper?

thank you very much !

@npurson
Copy link
Member

npurson commented Dec 17, 2024

To visualize the activation map for cross attention, you can compute the affinity matrix, which is the N × N matrix obtained by calculating the dot product Q • K in the attention mechanism, where N represents the number of voxels. Then you can visualize the activation of shape N by traversing the matrix.

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