fix: 🐞 update Moondream result format fix and doc example code block fixed

Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
Onuralp SEZER 2025-07-11 00:03:04 +03:00
parent 0343db7d95
commit 58aacc788d
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 3 additions and 3 deletions

View File

@ -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)