From c613005f690a40add3cf92912817b39de786580a Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Fri, 11 Jul 2025 18:10:50 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9E=20update=20Detections=20cla?= =?UTF-8?q?ss=20to=20remove=20class=5Fid=20return=20from=20from=5Fmoondrea?= =?UTF-8?q?m=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 28cdb27e..d90d5cf6 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -1101,8 +1101,8 @@ class Detections: return cls(xyxy=xyxy, data=data) if vlm == VLM.MOONDREAM: - xyxy, class_id = from_moondream(result, **kwargs) - return cls(xyxy=xyxy, class_id=class_id) + xyxy = from_moondream(result, **kwargs) + return cls(xyxy=xyxy) return cls.empty()