Closed happy-v587 closed 5 years ago
@HappyUncle As far as I know, MOSSE tracker does not do random affine transformation for each frame as reflected in your pull request. Authors mention this fact in section 3.4 of the paper:
The training set is constructed using random affine transformations to generate eight small perturbations (fi) of the tracking window in the initial frame. Training outputs (gi) are also generated with their peaks corresponding to the target center. During tracking, a target can often change appearance by changing its rotation, scale, pose, by moving through different lighting conditions, or even by undergoing nonrigid deformation. Therefore, filters need to quickly adapt in order to follow objects. Running average is used for this purpose.
You can also verify this from OpenCV implementation of MOSSE.
okay I think it would be better to randomly extract some samples for each frame.
Yes, incremental improvements are definitely possible but in this repository, I want to keep the code which follows the paper closely.
Anyway, thanks for your comments! I'll go ahead and close this for now :)
通过阅读作者的论文,发现更新模板是按照如下策略进行:
H
本身定义如下: 我认为作者的本意是:每一帧都进行N次采样和训练。但由于作者把N
个采样的下标也用的i
,使得下标i
和第i
帧重复使用了