microsoft / FocalNet

[NeurIPS 2022] Official code for "Focal Modulation Networks"
MIT License
682 stars 61 forks source link

Visualization #6

Closed ChuanyangZheng closed 2 years ago

ChuanyangZheng commented 2 years ago

Hi, I try to plot the visualization of modulator values as Fig.4 in your paper using the released checkpoint, however, the generated visualization shows chessboard-like square boxes as following: 0_attnmap gradcam_orig The code is following:

activation = F.interpolate(activation, size=224, mode='bilinear')
ax.imshow(activation)

How do you unsample the map to show more a natural heatmap? Thank you for your time.

ChuanyangZheng commented 2 years ago

sorry, it was my code's bug, using bilinear works well.