Add object detection, tracking, mobile notifications, and search to any security camera.
remove mot20 ifs
roryclear66a8af3efdc4
diff --git a/yolox/tracker/byte_tracker2.py b/yolox/tracker/byte_tracker2.pyindex 3f1b55f..d3912c5 100644--- a/yolox/tracker/byte_tracker2.py+++ b/yolox/tracker/byte_tracker2.py@@ -200,8 +200,7 @@ class BYTETracker2(object):# Predict the current location with KFSTrack.multi_predict(strack_pool)dists = matching.iou_distance(strack_pool, detections)- if not self.args.mot20:- dists = matching.fuse_score(dists, detections)+ dists = matching.fuse_score(dists, detections)matches, u_track, u_detection = matching.linear_assignment(dists, thresh=self.args.match_thresh)for itracked, idet in matches:@@ -244,8 +243,7 @@ class BYTETracker2(object):'''Deal with unconfirmed tracks, usually tracks with only one beginning frame'''detections = [detections[i] for i in u_detection]dists = matching.iou_distance(unconfirmed, detections)- if not self.args.mot20:- dists = matching.fuse_score(dists, detections)+ dists = matching.fuse_score(dists, detections)matches, u_unconfirmed, u_detection = matching.linear_assignment(dists, thresh=0.7)for itracked, idet in matches:unconfirmed[itracked].update(detections[idet], self.frame_id)