From 5e1d9bbd40054938ae8a994b26e7026e321e8743 Mon Sep 17 00:00:00 2001 From: Linas Kondrackis Date: Wed, 28 Feb 2024 15:22:15 +0200 Subject: [PATCH] smoother: check len of detections - not tracked_detections --- supervision/detection/tools/smoother.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/tools/smoother.py b/supervision/detection/tools/smoother.py index 1e8f91af..f58f3299 100644 --- a/supervision/detection/tools/smoother.py +++ b/supervision/detection/tools/smoother.py @@ -116,7 +116,7 @@ class DetectionsSmoother: tracked_detections.append(track) detections = Detections.merge(tracked_detections) - if len(tracked_detections) == 0: + if len(detections) == 0: detections.tracker_id = np.array([], dtype=int) return detections