Visualize the attention map using heatmap
chentairan opened this issue · 2 comments
chentairan commented
gaochen315 commented
After obtaining the attention map
iCAN/lib/networks/iCAN_ResNet50_VCOCO.py
Line 320 in 752ce5b
You can color code the attention map by
O_att = gray2rgb(O_att, cmap='jet')
. Then you can either save this map or plot it for visualization.
Let me know if you have any other questions.
chentairan commented
Thanks, I have dealed with it.