microsoft/FocalNet

Visualization

ChuanyangZheng opened this issue · 1 comments

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.

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