StrangerZhang / SiamFC-PyTorch

SiamFC PyTorch
MIT License
232 stars 63 forks source link

question about computing displacement in interpolation response #5

Closed happyjin closed 5 years ago

happyjin commented 6 years ago

Hi StrangerZhang: Thanks for your wonderful code. I have a question about computing displacement in interpolation response. Can you please tell me the intuition of this computation? Why does the code need to minus half of interp_response_sz? Thanks in advance!

ZSQflower commented 6 years ago

I think the output heatmap describes the translation of the target from the center position of the search patch image. Thus minusing half the size to calculate the translation (displacement).

happyjin commented 6 years ago

@ZSQflower Thanks for your swift reply. It makes sense. Can you please explain a bit more about displacement in instance frame namely disp_instance_frame = disp_instance_input * (self.s_x * scale) / config.instance_size? I am curious about why the disp_instance_input needs to time s_x at first then divided by instance_size.

ZSQflower commented 6 years ago

@happyjin '/ config.instance_size' is aimed to normalize the coordinate, '(self.s_x * scale)' is aimed to rescale the coordinate to original search patch. It could be easier to understand 'first divided by instance_size then time s_x '.

happyjin commented 5 years ago

Hi @ZSQflower Do you know how to evaluate the tracker in the OTB toolkit? I saw there is 'run_SiamFC.py' in 'bin' folder which might used for OTB evaluation. However, OTB benchmark toolkit from official can only evaluate Matlab tracker. Can you please tell me how to evaluate this Python tracker in the OTB benchmark toolkit? Thanks in advance!

StrangerZhang commented 5 years ago

@happyjin you can use this repo to test your tracker