supervision/tests
Jirka Borovec f2efc328f7
fix(dataset): 3D empty mask for VOC background (#2469)
- `detections_from_xml_obj` now builds `np.empty((0, H, W))` for a background image under `force_masks=True` instead of letting `np.array([])` collapse to shape `(0,)`, which failed `Detections` mask validation
- document the forced `class_id` `dtype=int` with an inline comment and state the integer-dtype guarantee in the `detections_from_xml_obj` docstring Returns section
- add background-image coverage: force_masks empty 3D mask, all-background dataset, background-first ordering, and save-then-load round-trip
- add changelog entry for the `force_masks=True` background-image mask fix

---

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
2026-08-03 18:30:24 +02:00
..
annotators refactor: vectorize `get_labels_text()` in annotators/utils (#2465) 2026-08-03 17:43:14 +02:00
assets feat: add image URL loader (#2372) 2026-07-28 21:24:55 +02:00
classification fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00
cv2 feat(cv2): remove OpenCV dependency (#2443) 2026-07-31 22:19:33 +02:00
dataset fix(dataset): 3D empty mask for VOC background (#2469) 2026-08-03 18:30:24 +02:00
detection Fix sink state when instances are reopened (#2459) 2026-07-28 10:11:06 +02:00
draw feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
geometry fix(docs): resolve review deprecation follow-ups (#2415) 2026-07-08 14:30:32 +02:00
key_points feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
metrics fix(metrics): avoid division by zero RuntimeWarning in F1Score using np.divide (#2437) 2026-07-17 17:11:45 +02:00
tracker fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
utils feat: add image URL loader (#2372) 2026-07-28 21:24:55 +02:00
validators fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
conftest.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
helpers.py feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00
test_public_api.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_validate_deprecations.py feat(cv2): complete fallback integration (#2439) 2026-07-17 07:50:45 +02:00