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:
parent
0343db7d95
commit
58aacc788d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue