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

Visualize Attention #177

Open
MatCorr opened this issue Aug 28, 2023 · 4 comments
Open

Visualize Attention #177

MatCorr opened this issue Aug 28, 2023 · 4 comments

Comments

@MatCorr
Copy link

MatCorr commented Aug 28, 2023

Does anyone have a code that allows one to visualize the result of the attention heads of the last layer? I'm thinking of something similar to what was done in DinoV1 through the visualize_attention.py script.

@ozkilim
Copy link

ozkilim commented Aug 29, 2023

https://gitlab.com/ziegleto-machine-learning/dino/-/tree/main/

@MatCorr
Copy link
Author

MatCorr commented Aug 29, 2023

Thanks a lot!

@MatCorr
Copy link
Author

MatCorr commented Aug 29, 2023

Uh oh, I just noticed your documentation says the solution doesn't work for XFORMERS, and that's exactly what we're using.

So if anyone has a code for that, I'd appreciate it.

@ozkilim
Copy link

ozkilim commented Aug 29, 2023

#90 (comment)

Change these lines and will work for XFORMERS

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