From e17e7d712f35ffd7e99fcd6c98abaf5dc9833d35 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Thu, 10 Jul 2025 23:30:33 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9E=20remove=20class=5Fname=20f?= =?UTF-8?q?rom=20from=5Fmoondream=20return=20in=20Detections=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 8094130e..d429e662 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -1041,9 +1041,8 @@ class Detections: return cls(xyxy=xyxy, data=data) if vlm == VLM.MOONDREAM: - xyxy, class_id, class_name = from_moondream(result, **kwargs) - data = {CLASS_NAME_DATA_FIELD: class_name} - return cls(xyxy=xyxy, class_id=class_id, data=data) + xyxy, class_id = from_moondream(result, **kwargs) + return cls(xyxy=xyxy, class_id=class_id) return cls.empty()