uoip / KCFpy

Python implementation of KCF tracking algorithm
MIT License
401 stars 124 forks source link

The gap between KCFcpp and KCFpy? #2

Open GarrickLin opened 7 years ago

GarrickLin commented 7 years ago

I have run your code, but I found the performance has some gap between these cpp and py version.

1. the cpp version has a better scale invariance
2. the py version is easily tend to lose target

and I still run some other version of cpp code such as vojirt/kcf and foolwood/KCF, they remain the same problems.

Do you have worked out this weird problem?

uoip commented 7 years ago

Sorry for my late reply. Did you change the parameters in line 59 in 'run.py', if you didn't, it may explain your question: tracker = kcftracker.KCFTracker(False, True, False) # hog, fixed_window, multiscale

You can set the first parameter True for tracking robustness, and set the third parameter True for scale invariance. (I update it now) I haven't test the the code systematically, so although this code is translated line-by-line from KCFcpp, there may still be some problems.

GarrickLin commented 7 years ago

Thank you very much!