0.26.1

jamiepine/voicebox0.26.1Jul 23, 2025by soumik12345

AI Summary

This release focuses on fixing critical bugs in the MeanAveragePrecision metric and related annotators within the supervision library to ensure accurate evaluation and stability.

Key Highlights

  • Fixed area calculation for size-specific evaluation (small/medium/large) in MeanAveragePrecision
  • Resolved ID=0 bug causing incorrect mAP scores despite perfect IoU matches
  • Fixed negative value returns in MeanAveragePrecision when certain object size categories are missing
  • Fixed match_metric support in sv.Detections.with_nms
  • Fixed border_thickness parameter usage for PercentageBarAnnotator

Full Release Notes

## 🔧 Fixed

- Fixed error in [`sv.MeanAveragePrecision`](https://supervision.roboflow.com/0.26.1/metrics/mean_average_precision/#supervision.metrics.mean_average_precision.MeanAveragePrecision) where the area used for size-specific evaluation (small / medium / large) was always zero unless explicitly provided in `sv.Detections.data`. (https://github.com/roboflow/supervision/pull/1894)
- Fixed `ID=0` bug in [`sv.MeanAveragePrecision`](https://supervision.roboflow.com/0.26.1/metrics/mean_average_precision/#supervision.metrics.mean_average_precision.MeanAveragePrecision) where objects were getting `0.0` mAP despite perfect IoU matches due to a bug in annotation ID assignment. (https://github.com/roboflow/supervision/pull/1895)
-  Fixed issue where [`sv.MeanAveragePrecision`](https://supervision.roboflow.com/0.26.1/metrics/mean_average_precision/#supervision.metrics.mean_average_precision.MeanAveragePrecision) could return negative values when certain object size categories have no data. (https://github.com/roboflow/supervision/pull/1898)
- Fixed `match_metric` support for [`sv.Detections.with_nms`](https://supervision.roboflow.com/0.26.1/metrics/mean_average_precision/#supervision.detection.core.Detections.with_nms). (https://github.com/roboflow/supervision/pull/1901)
- Fixed `border_thickness` parameter usage for [`sv.PercentageBarAnnotator`](https://supervision.roboflow.com/0.26.1/metrics/mean_average_precision/#supervision.annotators.core.PercentageBarAnnotator). (https://github.com/roboflow/supervision/pull/1906)

## 🏆 Contributors

@balthazur ([Balthasar Huber](https://www.linkedin.com/in/balthasar-huber/)), @onuralpszr ([Onuralp SEZER](https://www.linkedin.com/in/osezer/)), @rafaelpadilla ([Rafael Padilla](https://www.linkedin.com/in/rafael-padilla/)), @soumik12345 ([Soumik Rakshit](https://www.linkedin.com/in/soumikrakshit/)), @SkalskiP ([Piotr Skalski](https://www.linkedin.com/in/skalskip92/))