0.26.1

roboflow/supervision0.26.1Jul 23, 2025by soumik12345

AI Summary

Bugfix release focused on fixing critical issues in MeanAveragePrecision metric calculations and PercentageBarAnnotator parameter handling.

Key Highlights

  • Fixed area calculation bug in MeanAveragePrecision for size-specific evaluation
  • Fixed ID=0 bug causing objects to get 0.0 mAP despite perfect IoU matches
  • Fixed negative values issue when object size categories have no data
  • Fixed match_metric support for sv.Detections.with_nms
  • Fixed border_thickness parameter 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/))