supervision/tests/detection
Jirka Borovec 5344cb99dd
fix: close out remaining review findings (#2418)
Re-verify remaining supervision review backlog against develop HEAD; most items were already resolved by an intervening commit, only genuinely-open gaps got new fixes.
Fix float32 precision loss in box_iou_batch for large coordinates (GeoTIFF-scale) by accumulating in float64.
Raise ValueError instead of a strippable assert in EvaluationDataset.load_predictions for unknown image ids.
Add HeatMapAnnotator.reset() to clear accumulated heat for annotator reuse.
Add missing coverage: labelme export basename collisions, _greedy_match matcher, metrics.core ABC/enum contracts, metrics.utils.utils pandas guard; remove a global RNG-seed pollution site in a metrics test.
Document the last two undocumented public exports (calculate_masks_centroids, is_compressed_rle) and add usage examples to 17 previously-example-less public functions/classes (NMS/NMM helpers, draw utils, PolygonZoneAnnotator, mask/polygon converters).

* tests: load_predictions ValueError branch + empty-dataset coverage
* fix: box_iou_batch int-dtype overflow, narrow float32 precision claim
* feat: add reset() to TraceAnnotator/DetectionsSmoother, fix docstrings
* docs: fix temp file leak in coco.py docstring, rename misnamed test

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
2026-07-09 17:53:52 +02:00
..
tools fix: close out remaining review findings (#2418) 2026-07-09 17:53:52 +02:00
utils fix: close out remaining review findings (#2418) 2026-07-09 17:53:52 +02:00
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
test_compact_mask.py fix: close out remaining review findings (#2418) 2026-07-09 17:53:52 +02:00
test_compact_mask_integration.py perf(detection): keep mixed-mask Detections.merge compact (#2383) 2026-07-01 21:01:29 +02:00
test_compact_mask_iou.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_core.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_csv.py Fix detection medium review findings (#2400) 2026-07-06 19:02:38 +02:00
test_from_adapters.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_from_sam.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_inference_slicer_compact.py feat: add compact RLE mask ingestion (#2367) 2026-07-01 12:50:40 +02:00
test_json.py Fix detection medium review findings (#2400) 2026-07-06 19:02:38 +02:00
test_line_counter.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_polygon_zone_annotator.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_polygonzone.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00
test_vlm.py fix: remaining review findings in dataset, docs, and tests (#2416) 2026-07-08 23:00:32 +02:00