From 618fadae2ac33e6902e726d7181147b23d2d1746 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Thu, 5 Oct 2023 15:22:40 +0300 Subject: [PATCH] =?UTF-8?q?fix(detection):=20=F0=9F=90=9E=20yolo-nas=20det?= =?UTF-8?q?ection=20check=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- supervision/detection/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 0ba28491..f5498df4 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -296,7 +296,7 @@ class Detections: >>> detections = sv.Detections.from_yolo_nas(result) ``` """ - if np.asarray(yolo_nas_results.bboxes_xyxy).shape[0] == 0: + if np.asarray(yolo_nas_results.prediction.bboxes_xyxy).shape[0] == 0: return cls.empty() return cls(