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

Want get Attention map #10

Open
Hwanman opened this issue Dec 5, 2023 · 1 comment
Open

Want get Attention map #10

Hwanman opened this issue Dec 5, 2023 · 1 comment

Comments

@Hwanman
Copy link

Hwanman commented Dec 5, 2023

Hi.
The code runs fine.
But I am learning Vit and want to check the attention map.
Where should I modify it? First of all, the current code doesn't seem to output attention weights.

@Hwanman Hwanman changed the title Attentio map Want get Attention map Dec 5, 2023
@utkarshojha
Copy link
Collaborator

https://github.com/Yuheng-Li/UniversalFakeDetect/blob/main/models/vision_transformer.py

Maybe this code will be where you should make the change.

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