From c2abb24c2641b0c4a2a7afe0ac2b83c0df9d806d Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 14 Jul 2025 18:36:07 +0300 Subject: [PATCH] =?UTF-8?q?test:=20=F0=9F=A7=AA=20add=20test=20case=20for?= =?UTF-8?q?=20gemini=202.5=20segmentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/detection/test_vlm.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/detection/test_vlm.py b/test/detection/test_vlm.py index 2135600b..d18e03b4 100644 --- a/test/detection/test_vlm.py +++ b/test/detection/test_vlm.py @@ -1038,6 +1038,23 @@ def test_florence_2( None, None, ), + ( + does_not_raise(), + """```json + [ + {"box_2d": [10, 20, 110, 120], "mask": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAAAAACoWZBhAAAADElEQVR4nGNgoCcAAABuAAFIXXpjAAAAAElFTkSuQmCC", "label": "cat"} + ] + ```""", # noqa E501 // docs + (10, 10), + ["cat"], + ( + np.array([[0.2, 0.1, 1.2, 1.1]]), + np.array([0]), + np.array(["cat"]), + None, + np.array([np.zeros((10, 10), dtype=bool)]), + ), + ), ], ) def test_from_google_gemini_2_5(