From 3940be3370a8e451c4e9e45b11bf03ccf2c555fb Mon Sep 17 00:00:00 2001 From: luanhailiang Date: Thu, 21 Sep 2023 21:47:29 +0800 Subject: [PATCH] is not --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index beececc..022e7ac 100644 --- a/app.py +++ b/app.py @@ -81,7 +81,7 @@ def worker(id,source,region=None,stream=False): detections = sv.Detections.from_yolov8(result) if result.boxes.id is not None: detections.tracker_id = result.boxes.id.cpu().numpy().astype(int) - detections = detections[(detections.tracker_id != None)] + detections = detections[(detections.tracker_id is not None)] count += 1 names = {}