HandOccNet icon indicating copy to clipboard operation
HandOccNet copied to clipboard

How is the feature map visualization got?

Open XiyueSun opened this issue 2 years ago • 5 comments

how to do the feature map visualization like figure 2 and 7?

XiyueSun avatar May 19 '22 13:05 XiyueSun

We apply absolute sum to make channel dimension 1, and show feature map from matpoltlib package.

namepllet avatar May 27 '22 06:05 namepllet

@namepllet Hi, Park and Ou. Thanks for your impressive work. Could please also let me know how you obtained the Correlation Map as in Figure 4? I have now the 1x4x1024x1024 shape C from the matmul of Csoft and Csig. Thanks in advance!

jingyushi avatar Jun 09 '22 23:06 jingyushi

The correlation map in figure 4 shows correlation between single query(red point) and other keys.

So you can choose any query and reshape key dimension to 32x32 to visualize correlation map.

namepllet avatar Jun 30 '22 08:06 namepllet

Hi, I'm trying to visualize the primary feature map like figure 2 by following your method above with the demo model weight. But I couldn't get the same visualization as yours. Here's my code, input image and visualization results. Which part I did wrong?

        pfeats = primary_feats.abs().sum(dim=1).squeeze()

Thanks

karta2155802 avatar Sep 05 '22 07:09 karta2155802

Since we refactored our code after paper submission, the feature map may look different.

And for the HO3D images, use pretrained model weight for HO3D. (The demo model is not trained on HO3D)

namepllet avatar Sep 17 '22 11:09 namepllet