fix: 🐞 remove unused class_id references in Detections class from_vlm method

This commit is contained in:
Onuralp SEZER 2025-07-11 18:14:35 +03:00
parent c613005f69
commit d002b8afbf
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 0 additions and 6 deletions

View File

@ -908,7 +908,6 @@ class Detections:
'y_max': 0.4961046129465103}]
}
detections = sv.Detections.from_vlm(
sv.VLM.MOONDREAM,
moondream_result,
@ -919,8 +918,6 @@ class Detections:
# array([[1752.28, 818.82, 2165.72, 1229.14],
# [1908.01, 1346.67, 2585.99, 2024.11]])
detections.class_id
# array([0, 1])
"""
# filler logic mapping old from_lmm to new from_vlm
@ -1054,7 +1051,6 @@ class Detections:
'y_max': 0.4961046129465103}]
}
detections = sv.Detections.from_vlm(
sv.VLM.MOONDREAM,
moondream_result,
@ -1065,8 +1061,6 @@ class Detections:
# array([[1752.28, 818.82, 2165.72, 1229.14],
# [1908.01, 1346.67, 2585.99, 2024.11]])
detections.class_id
# array([0, 1])
```
"""