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)