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