From a99015ac2da717477346fd825ba11cbed934b11f Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Sat, 15 Nov 2025 22:51:22 +0100 Subject: [PATCH] more Qwen2.5-VL tests --- test/detection/test_vlm.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/detection/test_vlm.py b/test/detection/test_vlm.py index 7bfc2313..9a0195f7 100644 --- a/test/detection/test_vlm.py +++ b/test/detection/test_vlm.py @@ -357,6 +357,18 @@ def test_from_paligemma( np.array(["dog", "cat"], dtype=str), ), ), # truncated response, last object unfinished, previous ones recovered + ( + pytest.raises(ValueError), + """```json + [ + {"bbox_2d": [10, 20, 110, 120], "label": "cat"} + ] + ```""", + (0, 640), + (1280, 720), + None, + None, # invalid input_wh + ), ( pytest.raises(ValueError), """```json