fix(pre_commit): 🎨 auto format pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2024-05-24 14:56:03 +00:00
parent 2653f5a090
commit 51c7ebdf60
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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)