You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First let me thank the programmer for this code. This helped me a lot getting my application to work. Howerver, I noticed an immediate track killing after a single missed detection. As can be seen in the issue tracker, it was mentioned by some people before.
To investigate the problem, I noticed the code snipped in the prediction routine which is follows:
if(self.time_since_update>0):
self.hit_streak = 0
To my eyes, it is in conflict with the following if statement in the update routine:
if((trk.time_since_update < 1) and (trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits)):
ret.append(np.concatenate((d,[trk.id+1])).reshape(1,-1)) # +1 as MOT benchmark requires positive
i -= 1
#remove dead tracklet
if(trk.time_since_update > self.max_age):
self.trackers.pop(i)
So I commented the "hit_streak = 0" part out and now the tracker is able to predict over self.max_age frames as I would expect it to work.
Regards,
Christopher
The text was updated successfully, but these errors were encountered:
Change
if((trk.time_since_update < 1) and (trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits)):
to
if ((trk.time_since_update <= self.max_age) and (trk.hits >= self.min_hits or self.frame_count <= self.min_hits)):
First let me thank the programmer for this code. This helped me a lot getting my application to work. Howerver, I noticed an immediate track killing after a single missed detection. As can be seen in the issue tracker, it was mentioned by some people before.
To investigate the problem, I noticed the code snipped in the prediction routine which is follows:
if(self.time_since_update>0):
self.hit_streak = 0
To my eyes, it is in conflict with the following if statement in the update routine:
if((trk.time_since_update < 1) and (trk.hit_streak >= self.min_hits or self.frame_count <= self.min_hits)):
ret.append(np.concatenate((d,[trk.id+1])).reshape(1,-1)) # +1 as MOT benchmark requires positive
i -= 1
#remove dead tracklet
if(trk.time_since_update > self.max_age):
self.trackers.pop(i)
So I commented the "hit_streak = 0" part out and now the tracker is able to predict over self.max_age frames as I would expect it to work.
Regards,
Christopher
The text was updated successfully, but these errors were encountered: