From bc4ba7f67c3b624447c8e0579b9c3475fadde154 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 14 Aug 2023 22:16:52 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20typo=20fix=20for=20Paddl?= =?UTF-8?q?eDetection=20in=20args?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- docs/changelog.md | 2 +- supervision/detection/core.py | 2 +- supervision/tracker/byte_tracker/core.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index a37bc54d..c0ef10f8 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,6 +1,6 @@ ### 0.13.0 August 8, 2023 -- Added [#236](https://github.com/roboflow/supervision/pull/236): support for mean average precision (mAP) for object detection models with [`sv.MeanAveragePrecision`](https://roboflow.github.io/supervision/metrics/detection/#meanaverageprecision). +- Added [#236](https://github.com/roboflow/supervision/pull/236): support for mean average precision (mAP) for object detection models with [`sv.MeanAveragePrecision`](https://roboflow.github.io/supervision/metrics/detection/#meanaverageprecision). ```python >>> import supervision as sv diff --git a/supervision/detection/core.py b/supervision/detection/core.py index 2742b231..ffa52978 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -469,7 +469,7 @@ class Detections: inference result. Args: - paddledet_result (List[dict]): The output Results instance from SAM + paddledet_result (List[dict]): The output Results instance from PaddleDet Returns: Detections: A new Detections object. diff --git a/supervision/tracker/byte_tracker/core.py b/supervision/tracker/byte_tracker/core.py index 4e270ab5..193a2a88 100644 --- a/supervision/tracker/byte_tracker/core.py +++ b/supervision/tracker/byte_tracker/core.py @@ -212,7 +212,7 @@ class ByteTrack: >>> def callback(frame: np.ndarray, index: int) -> np.ndarray: ... results = model(frame)[0] ... detections = sv.Detections.from_yolov8(results) - ... detections = byte_tracker.update_with_detections(detections=detections) + ... detections = byte_tracker.update_with_detections(detections) ... labels = [ ... f"#{tracker_id} {model.model.names[class_id]} {confidence:0.2f}" ... for _, _, confidence, class_id, tracker_id