Added default value for is_obb parameter

This commit is contained in:
Bhavay Malhotra
2024-06-06 22:14:02 +05:30
parent 2f644c52e3
commit 6ca09ccbfc
+1 -1
View File
@@ -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()