vit-pytorch icon indicating copy to clipboard operation
vit-pytorch copied to clipboard

Visualize the attention weights

Open code-pan94 opened this issue 2 years ago • 1 comments

Hello,

I am wondering how can we visualize the attention maps as in the original ViT paper. I tried several strategies but I failed unfortunately.

Thanks in advance.

code-pan94 avatar Sep 04 '22 13:09 code-pan94

https://github.com/WAMAWAMA/trans_attention_vis maybe you can try this

but more novel method to visualize the attention maps is like: https://github.com/hila-chefer/Transformer-Explainability https://github.com/hila-chefer/Transformer-MM-Explainability

WAMAWAMA avatar Oct 24 '22 10:10 WAMAWAMA