Closed DaHoC closed 9 years ago
Did you ever make any progress with that ? I'm looking to solve the same issue. The default people detector doesn't start with 0 indeed and we lose a value because of the -b. I've tried to remove the -b and specify it manually in the detect function of hogdescriptor. In one case it works beautifully, but in the other case, it doesn't work so I'm guessing there might be more to this...
What seems to work perfectly for me, is to shift indice by one, remove the -b at the end, rescale the detector to 3780 instead of 3781 and use model->b for the detection threshold in HoG.
With commit a6def3ac254b8c7cdd066afa8ecfd40eb9db5b6d, this bug should be closed. I also added a tentative check if training succeeded.
The first value (Index 0) of the vector being generated in function
getSingleDetectingVector()
being always 0 due to the way SVMlight handles indices, as well as the last value (Index 3780) being overwritten by -b. An indexshift does not fix this issue because the positions/indices of the detecting vector components do matter for HOG.