Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about sample area selection in ToMP #370

Open
shen-ttt opened this issue Jan 19, 2023 · 0 comments
Open

Questions about sample area selection in ToMP #370

shen-ttt opened this issue Jan 19, 2023 · 0 comments

Comments

@shen-ttt
Copy link

shen-ttt commented Jan 19, 2023

Thank you for the code of ToMP! Really help me a lot in understanding the whole logic.

ToMP uses the sample_patch function to select a sample area and extract features. During normal tracking, the center of this sample area is determined by the following function:

def get_centered_sample_pos(self):
      ""Get the center position for the new sample. Make sure the target is correctly centered."""
      return self.pos + ((self.feature_sz + self.kernel_size) % 2) * self.target_scale * \
           self.img_support_sz / (2*self.feature_sz)

Instead of using self.pos as the center point, the code added another complex term. Could you help me understand the reason behind it?

Really appreciate it if you can help me a bit with this.

@shen-ttt shen-ttt changed the title Questions about sample area selection and memory setup in ToMP Questions about sample area selection in ToMP Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant