Apply to ByteTracker second association (#23771)

This commit is contained in:
Ahmet Faruk GÜMÜŞTAŞ 2026-03-02 11:40:58 +03:00 committed by GitHub
parent aa81365907
commit 711b725631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]