AoANet icon indicating copy to clipboard operation
AoANet copied to clipboard

Visualization of attention regions

Open tong8080 opened this issue 5 years ago • 6 comments

Hello, how do you draw the figure 8(Visualization of attention regions) in the paper? Is it reflected in the code?

tong8080 avatar Jan 08 '20 06:01 tong8080

@tong8080 Sorry that it's not reflected in the code. But it's not difficult to implement: during the decoding process, you can obtain the attention weights for all image regions and use alpha blending to draw the figure.

husthuaan avatar Jan 08 '20 07:01 husthuaan

Thanks, I will have a try.

tong8080 avatar Jan 08 '20 07:01 tong8080

@tong8080 have you implement it? pretty difficult for me.

2014gaokao avatar Feb 17 '20 05:02 2014gaokao

Same problem, has anybody solved it?

invisprints avatar Jun 17 '20 06:06 invisprints

Hello everyone, same question here: how do I do it during the decoding phase? During decoding, we have multiple attention weights, since there are several heads and also several layers, right? What would be the way to combine them in such fashion, that something similar to Fig. 8 can be created? Or am I misunderstanding something?

nilinykh avatar Sep 08 '20 14:09 nilinykh

Hello everyone, same question here: how do I do it during the decoding phase? During decoding, we have multiple attention weights, since there are several heads and also several layers, right? What would be the way to combine them in such fashion, that something similar to Fig. 8 can be created? Or am I misunderstanding something?

I'm also confused about the same points

gabrielsantosrv avatar Nov 18 '20 13:11 gabrielsantosrv