ohhhyeahhh / SiamGAT

Code for the paper "Graph Attention Tracking". (CVPR2021)
https://openaccess.thecvf.com/content/CVPR2021/papers/Guo_Graph_Attention_Tracking_CVPR_2021_paper.pdf
139 stars 19 forks source link

How to calculate OFFSET? #11

Closed DXZDXZ closed 3 years ago

DXZDXZ commented 3 years ago

I still can not understand the reason why cfg.BACKBONE.OFFSET equals to 13. Could you tell me how to calculate it?

twotwo2 commented 3 years ago

As for convolution/pooling layer, the coordinate mapping can be expressed as *pos_layer1 = stride pos_Layer2 + ((kernel - 1) / 2 - padding)**. Due to the existence of padding, the mapping between the feature and the original picture has offset. Combined network structure of modified googlenet, the offset of the feature map to the original image is 13.

DXZDXZ commented 3 years ago

I understand. THANK YOU!