supervision/tests/detection/utils
Jirka Borovec de87030a21
refactor(rle): consolidate RLE primitives (#2230)
* consolidate RLE primitives
* remove wrapper fns, inline converters in CompactMask
* correct _delta_encode doctest example input
* add coverage for multi-byte base48, negative deltas, oversized RLE
* docs: fix RLE decoder example
* coerce mask_2d to bool before view(uint8) in _mask_to_rle_counts

---------

Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Codex <codex@openai.com>
2026-04-22 12:32:14 +02:00
..
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_boxes.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_converters.py refactor(rle): consolidate RLE primitives (#2230) 2026-04-22 12:32:14 +02:00
test_internal.py feat: Detections.from_inference supports compressed RLE masks (#2178) 2026-04-15 22:35:47 +02:00
test_iou_and_nms.py Add `match` arguments to all `pytest.raises` for more precise error validation in tests (#2145) 2026-02-10 21:22:55 +09:00
test_masks.py Add `match` arguments to all `pytest.raises` for more precise error validation in tests (#2145) 2026-02-10 21:22:55 +09:00
test_polygons.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_vlms.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00