From 5ebf6165e53bf7d5b7776491e5fc9d291048c2e5 Mon Sep 17 00:00:00 2001 From: Yonas Date: Mon, 25 Nov 2024 14:09:06 +0800 Subject: [PATCH] fix: wrong indent in yolo conventer Fixed an issue where multiple redundant files with the same name were generated when exporting YOLO format annotation files due to accidental indentation. --- labelu/internal/common/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelu/internal/common/converter.py b/labelu/internal/common/converter.py index 44ec627..4336c7e 100644 --- a/labelu/internal/common/converter.py +++ b/labelu/internal/common/converter.py @@ -600,7 +600,7 @@ def convert_to_yolo(self, config: dict, input_data: List[dict], out_data_file_na height /= image_height outfile.write(f"{classes.index(label)} {x_center} {y_center} {width} {height}\n") - export_files.append(file_name) + export_files.append(file_name) file_relative_path_zip = f"task-{out_data_file_name_prefix}-yolo.zip"