From 51c7ebdf60df844448cee07a078b9013380b69bc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 14:56:00 +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/dataset/core.py | 2 +- supervision/dataset/formats/yolo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/supervision/dataset/core.py b/supervision/dataset/core.py index ab53dcd0..6ffd9086 100644 --- a/supervision/dataset/core.py +++ b/supervision/dataset/core.py @@ -282,7 +282,7 @@ class DetectionDataset(BaseDataset): force_masks (bool, optional): If True, forces masks to be loaded for all annotations, regardless of whether they are present. - is_obb (bool, optional): If True, returns the + is_obb (bool, optional): If True, returns the annotations in YOLO-OBB format. Returns: diff --git a/supervision/dataset/formats/yolo.py b/supervision/dataset/formats/yolo.py index 4c2893e4..087a7696 100644 --- a/supervision/dataset/formats/yolo.py +++ b/supervision/dataset/formats/yolo.py @@ -86,7 +86,7 @@ def yolo_annotations_to_detections( if with_masks: relative_polygon.append(_box_to_polygon(box=box)) elif len(values) > 5: - polygon = _parse_polygon(values=values[1:]) + polygon = _parse_polygon(values=values[1:]) relative_xyxy.append(polygon_to_xyxy(polygon=polygon)) if with_masks: relative_polygon.append(polygon)