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 save the attention maps #3

Closed
rulixiang opened this issue Feb 1, 2023 · 2 comments
Closed

How to save the attention maps #3

rulixiang opened this issue Feb 1, 2023 · 2 comments

Comments

@rulixiang
Copy link

Hey, this is an very interesting work!
I tried to save the cross-attention maps by setting save_cross_attention_maps in config.py to True, but sadly found no attention map was saved. Can you show how to save the attention maps?
Thanks!

@AttendAndExcite
Copy link
Collaborator

Hi @rulixiang, thanks for your interest!
This configuration is currently not supported in the code, however, you can use our cross-attention visualization notebook to visualize the cross-attention maps obtained with and without Attend-and-Excite.

@rulixiang
Copy link
Author

Thanks, I found it!

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