test: 🧪 add test case for gemini 2.5 segmentation

This commit is contained in:
Onuralp SEZER 2025-07-14 18:36:07 +03:00
parent 8c4a1e5a5e
commit c2abb24c26
No known key found for this signature in database
GPG Key ID: CF0835DFDF14CA38
1 changed files with 17 additions and 0 deletions

View File

@ -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(