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

test visulization #10

Open
helloyuning opened this issue Feb 1, 2024 · 1 comment
Open

test visulization #10

helloyuning opened this issue Feb 1, 2024 · 1 comment

Comments

@helloyuning
Copy link

Thanks for your greate work and sharing.

How do you do the visulization about attention activation?

Thans.

@callsys
Copy link
Owner

callsys commented Feb 1, 2024

The visualization code is at lines 224-235 in GenPromp/datasets/evaluation/cam.py. You can get the attention activation by setting the save_vis_path in the config file to a directory.

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