From 6ca09ccbfc4a796d26967c860c3e0cbc6b8ad705 Mon Sep 17 00:00:00 2001 From: Bhavay Malhotra Date: Thu, 6 Jun 2024 22:14:02 +0530 Subject: [PATCH] Added default value for is_obb parameter --- supervision/dataset/formats/yolo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervision/dataset/formats/yolo.py b/supervision/dataset/formats/yolo.py index 35449fde..2abb8cbd 100644 --- a/supervision/dataset/formats/yolo.py +++ b/supervision/dataset/formats/yolo.py @@ -71,7 +71,7 @@ def _image_name_to_annotation_name(image_name: str) -> str: def yolo_annotations_to_detections( - lines: List[str], resolution_wh: Tuple[int, int], with_masks: bool, is_obb: bool + lines: List[str], resolution_wh: Tuple[int, int], with_masks: bool, is_obb: bool = False ) -> Detections: if len(lines) == 0: return Detections.empty()