> **Warning**
> With the `supervision-0.12.0` release, we are terminating official support for Python 3.7. ([179](https://github.com/roboflow/supervision/issues/179))
🚀 Added
- Initial support for object detection model benchmarking with [`sv.ConfusionMatrix`](https://roboflow.github.io/supervision/metrics/detection/#confusionmatrix). ([177](https://github.com/roboflow/supervision/pull/177))
python
>>> import supervision as sv
>>> from ultralytics import YOLO
>>> dataset = sv.DetectionDataset.from_yolo(...)
>>> model = YOLO(...)
>>> def callback(image: np.ndarray) -> sv.Detections:
... result = model(image)[0]
... return sv.Detections.from_yolov8(result)
>>> confusion_matrix = sv.ConfusionMatrix.benchmark(
... dataset = dataset,
... callback = callback
... )
>>> confusion_matrix.matrix
array([
[0., 0., 0., 0.],
[0., 1., 0., 1.],
[0., 1., 1., 0.],
[1., 1., 0., 0.]
])
- [`Detections.from_mmdetection`](https://roboflow.github.io/supervision/detection/core/#supervision.detection.core.Detections.from_mmdetection) to enable seamless integration with [MMDetection](https://github.com/open-mmlab/mmdetection) framework. ([#173](https://github.com/roboflow/supervision/pull/173))
- Ability to [install](https://roboflow.github.io/supervision/) package in `headless` or `desktop` mode. ([#130](https://github.com/roboflow/supervision/issues/130))
![Snap (51)](https://github.com/roboflow/supervision/assets/26109316/f2a3fdcd-a67b-4386-80e9-7ef6419cac59)
🌱 Changed
- Packing method from `setup.py` to `pyproject.toml`. ([180](https://github.com/roboflow/supervision/pull/180))
🛠️ Fixed
- [`sv.DetectionDataset.from_cooc`](https://roboflow.github.io/supervision/dataset/core/#supervision.dataset.core.DetectionDataset.from_coco) can't be loaded when there are images without annotations. ([188](https://github.com/roboflow/supervision/issues/188))
- [`sv.DetectionDataset.from_yolo`](https://roboflow.github.io/supervision/dataset/core/#supervision.dataset.core.DetectionDataset.from_yolo) can't load background instances. ([226](https://github.com/roboflow/supervision/issues/226))
🏆 Contributors
kirilllzaitsev hardikdava onuralpszr Ucag SkalskiP capjamesg