🖤 make black happy

This commit is contained in:
SkalskiP committed 2023-06-28 17:12:24 +02:00
1 parent cdc08c0455
commit ea517642f0
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -409,7 +409,7 @@ class DetectionDataset(BaseDataset):
annotations_path: Optional[str] = None,
min_image_area_percentage: float = 0.0,
max_image_area_percentage: float = 1.0,
approximation_percentage: float = 0.0
approximation_percentage: float = 0.0,
) -> None:
"""
Exports the dataset to COCO format. This method saves the images and their corresponding
@@ -439,7 +439,7 @@ class DetectionDataset(BaseDataset):
classes=self.classes,
min_image_area_percentage=min_image_area_percentage,
max_image_area_percentage=max_image_area_percentage,
approximation_percentage=approximation_percentage
approximation_percentage=approximation_percentage,
)
@classmethod
+1 -1
View File
@@ -161,7 +161,7 @@ def save_coco_annotations(
classes: List[str],
min_image_area_percentage: float = 0.0,
max_image_area_percentage: float = 1.0,
approximation_percentage: float = 0.75
approximation_percentage: float = 0.75,
) -> None:
Path(annotation_path).parent.mkdir(parents=True, exist_ok=True)
info = {}