Giter Club home page Giter Club logo

Comments (3)

dongfangduoshou123 avatar dongfangduoshou123 commented on September 7, 2024

Is the code "self.pos - self.pos.round()" means to transfer the original point from left-up to self.pos.round() ?

from pytracking.

dongfangduoshou123 avatar dongfangduoshou123 commented on September 7, 2024

In code "center_pos = sz * target_center_norm + 0.5 * torch.Tensor([(ksz[0] + 1) % 2, (ksz[1] + 1) % 2])"

"sz * target_center_norm" part transfer the normalized center pos to feature map coordinate, what about another part " + 0.5 * torch.Tensor([(ksz[0] + 1) % 2, (ksz[1] + 1) % 2])" 's mean?

and I find after modify from โ€center_pos = sz * target_center_norm + 0.5 * torch.Tensor([(ksz[0] + 1) % 2, (ksz[1] + 1) % 2])" to "center_pos = sz * target_center_norm", when do tracking, it also work well.

from pytracking.

martin-danelljan avatar martin-danelljan commented on September 7, 2024

Hi.
Just pushed an update that should clarify things a little. There was a small bug that could lead to 0.5 pixel misalignment.

self.pos.round() is the center pixel coordinate of the extracted sample. So self.pos - self.pos.round() should correct from this sub-pixel displacement.

The term 0.5 * torch.Tensor([(ksz[0] + 1) % 2 is to correctly handle even and odd kernels. It leads to small misalignments if you remove that, but the IoU-Net largely compensates for it.

from pytracking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.