From 96041a18c44577a1c7d48729358811f12fbf3cb6 Mon Sep 17 00:00:00 2001 From: Justin Ruan Date: Wed, 8 Nov 2023 13:25:56 +0800 Subject: [PATCH] fix second matching index for bot_sort --- boxmot/trackers/botsort/bot_sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxmot/trackers/botsort/bot_sort.py b/boxmot/trackers/botsort/bot_sort.py index 858201e8ad..e76adfaf68 100644 --- a/boxmot/trackers/botsort/bot_sort.py +++ b/boxmot/trackers/botsort/bot_sort.py @@ -249,7 +249,7 @@ def update(self, dets, img): confs = dets[:, 4] # find second round association detections - second_mask = np.logical_or(confs > self.track_low_thresh, confs < self.track_high_thresh) + second_mask = np.logical_and(confs > self.track_low_thresh, confs < self.track_high_thresh) dets_second = dets[second_mask] # find first round association detections