fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user