Apply to ByteTracker second association (#23771)
This commit is contained in:
parent
aa81365907
commit
711b725631
@ -338,8 +338,9 @@ class BYTETracker:
|
||||
# Step 3: Second association, with low score detection boxes association the untrack to the low score detections
|
||||
detections_second = self.init_track(results_second, feats_second)
|
||||
r_tracked_stracks = [strack_pool[i] for i in u_track if strack_pool[i].state == TrackState.Tracked]
|
||||
# TODO: consider fusing scores or appearance features for second association.
|
||||
dists = matching.iou_distance(r_tracked_stracks, detections_second)
|
||||
if self.args.fuse_score:
|
||||
dists = matching.fuse_score(dists, detections_second)
|
||||
matches, u_track, _u_detection_second = matching.linear_assignment(dists, thresh=0.5)
|
||||
for itracked, idet in matches:
|
||||
track = r_tracked_stracks[itracked]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user