supervision/docs/detection/utils
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
..
boxes.md fix(obb): NMM now computes geometric union via min-area rotated rect (#2312) 2026-06-15 16:23:31 +02:00
converters.md fix: close out remaining review findings (#2418) 2026-07-09 17:53:52 +02:00
iou_and_nms.md refine(detection): make `with_nms` and `with_nmm` OBB-aware (#2303) 2026-06-09 13:11:09 +02:00
masks.md fix: close out remaining review findings (#2418) 2026-07-09 17:53:52 +02:00
polygons.md update `new` docs page marks 2025-11-14 14:52:39 +01:00
vlms.md fix(docs): resolve review deprecation follow-ups (#2415) 2026-07-08 14:30:32 +02:00