Skip to content

Commit 9ab9650

Browse files
committed
plug Qwen3-VL into sv.Detections.from_vlm
1 parent 353bd53 commit 9ab9650

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervision/detection/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from_moondream,
4848
from_paligemma,
4949
from_qwen_2_5_vl,
50-
validate_vlm_parameters,
50+
validate_vlm_parameters, from_qwen_3_vl,
5151
)
5252
from supervision.geometry.core import Position
5353
from supervision.utils.internal import deprecated, get_instance_variables
@@ -1560,7 +1560,7 @@ def from_vlm(cls, vlm: VLM | str, result: str | dict, **kwargs: Any) -> Detectio
15601560
return cls(xyxy=xyxy, class_id=class_id, data=data)
15611561

15621562
if vlm == VLM.QWEN_3_VL:
1563-
xyxy, class_id, class_name = from_qwen_2_5_vl(result, **kwargs)
1563+
xyxy, class_id, class_name = from_qwen_3_vl(result, **kwargs)
15641564
data = {CLASS_NAME_DATA_FIELD: class_name}
15651565
return cls(xyxy=xyxy, class_id=class_id, data=data)
15661566

0 commit comments

Comments
 (0)