uoip / KCFpy

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

I believe there are some bugs in the code #16

Open z6491679 opened 4 years ago

z6491679 commented 4 years ago

in kcftracker.py: 209-213 should be to make sure self._tmpl_sz can be divisible by self.cell_size:
if(self._hogfeatures): self._tmpl_sz[0] = int(self._tmpl_sz[0] / (2self.cell_size)) 2self.cell_size + 2self.cell_size self._tmpl_sz[1] = int(self._tmpl_sz[1] / (2self.cell_size)) 2self.cell_size + 2self.cell_size else: self._tmpl_sz[0] = int(self._tmpl_sz[0] / 2) 2 self._tmpl_sz[1] = int(self._tmpl_sz[1] / 2) 2

zhishao commented 4 years ago

u r right, thank you!