Warning
With the supervision-0.12.0
release, we are terminating official support for Python 3.7. (#179)
🚀 Added
- Initial support for object detection model benchmarking with
sv.ConfusionMatrix
. (#177)
>>> 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
to enable seamless integration with MMDetection framework. (#173) -
Ability to install package in
headless
ordesktop
mode. (#130)
🌱 Changed
- Packing method from
setup.py
topyproject.toml
. (#180)
🛠️ Fixed
sv.DetectionDataset.from_cooc
can't be loaded when there are images without annotations. (#188)sv.DetectionDataset.from_yolo
can't load background instances. (#226)
🏆 Contributors
@kirilllzaitsev @hardikdava @onuralpszr @Ucag @SkalskiP @capjamesg