Skip to content

Commit

Permalink
fix: wrong indent in yolo conventer
Browse files Browse the repository at this point in the history
Fixed an issue where multiple redundant files with the same name were generated when exporting YOLO format annotation files due to accidental indentation.
  • Loading branch information
Qznan authored Nov 25, 2024
1 parent 9f3d8c2 commit 5ebf616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelu/internal/common/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5ebf616

Please sign in to comment.