From 58aacc788d2d285c622cf738ef71cd16ca17306f Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Fri, 11 Jul 2025 00:03:04 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9E=20update=20Moondream=20resu?= =?UTF-8?q?lt=20format=20fix=20and=20doc=20example=20code=20block=20fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- supervision/detection/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 99f9beed..f4b0cf3e 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -1014,8 +1014,7 @@ class Detections: ```python import supervision as sv - moondream_result = \"\"\" - { + moondream_result = { 'objects': [{'x_min': 0.5704046934843063, 'y_min': 0.20069346576929092, 'x_max': 0.7049859315156937, @@ -1025,7 +1024,7 @@ class Detections: 'x_max': 0.8417936339974403, 'y_max': 0.4961046129465103}] } - \"\"\" + detections = sv.Detections.from_vlm( sv.VLM.MOONDREAM, @@ -1039,6 +1038,7 @@ class Detections: detections.class_id # array([0, 1]) + ``` """ vlm = validate_vlm_parameters(vlm, result, kwargs)