From 2ea0f443f843811af44122a00aeb49ec05cefc0a Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Thu, 24 Apr 2025 00:08:06 +0200 Subject: [PATCH] test new approach --- supervision/annotators/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/supervision/annotators/core.py b/supervision/annotators/core.py index 322833b2..5720b580 100644 --- a/supervision/annotators/core.py +++ b/supervision/annotators/core.py @@ -1740,13 +1740,11 @@ class TraceAnnotator(BaseAnnotator): "The `tracker_id` field is missing in the provided detections." " See more: https://supervision.roboflow.com/latest/how_to/track_objects" ) + detections = detections[detections.tracker_id != PENDING_TRACK_ID] self.trace.put(detections) for detection_idx in range(len(detections)): tracker_id = int(detections.tracker_id[detection_idx]) - if tracker_id == PENDING_TRACK_ID: - continue - color = resolve_color( color=self.color, detections=detections,