From 9d56d8a9fe695a687d07ccc9300a9a3764d043bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:47:54 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/detection/core.py | 12 ++++++------ supervision/tracker/byte_tracker/core.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/supervision/detection/core.py b/supervision/detection/core.py index b9914b99..fd2409d8 100644 --- a/supervision/detection/core.py +++ b/supervision/detection/core.py @@ -152,9 +152,9 @@ class Detections: !!! Note - `from_ultralytics` is compatible with - [detection](https://docs.ultralytics.com/tasks/detect/), - [segmentation](https://docs.ultralytics.com/tasks/segment/), and + `from_ultralytics` is compatible with + [detection](https://docs.ultralytics.com/tasks/detect/), + [segmentation](https://docs.ultralytics.com/tasks/segment/), and [OBB](https://docs.ultralytics.com/tasks/obb/) models. Args: @@ -318,8 +318,8 @@ class Detections: @classmethod def from_mmdetection(cls, mmdet_results) -> Detections: """ - Creates a Detections instance from a - [mmdetection](https://github.com/open-mmlab/mmdetection) and + Creates a Detections instance from a + [mmdetection](https://github.com/open-mmlab/mmdetection) and [mmyolo](https://github.com/open-mmlab/mmyolo) inference result. Args: @@ -334,7 +334,7 @@ class Detections: import cv2 import supervision as sv from mmdet.apis import init_detector, inference_detector - + image = cv2.imread() model = init_detector(, , device=) diff --git a/supervision/tracker/byte_tracker/core.py b/supervision/tracker/byte_tracker/core.py index 8b74aa02..9e3c0167 100644 --- a/supervision/tracker/byte_tracker/core.py +++ b/supervision/tracker/byte_tracker/core.py @@ -166,7 +166,7 @@ def detections2boxes(detections: Detections) -> np.ndarray: class ByteTrack: """ Initialize the ByteTrack object. - +