Skip to content

Latest commit

 

History

History

grid_attention_visualization

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

attention map visualization

pre-requisite

$ pip install opencv-python
$ pip install matplotlib
$ pip install Pillow
$ pip install numpy

Contents

the attention style in version2 can be changed by "cmap", choose the color map you like here

Result

1. Version1 example

  • original image

  • image with attention (for example we use random attention map here)

2. Version2 example

  • original image

  • image with attention (for example we use random attention map here)