Skip to content

Commit 82c1924

Browse files
committed
Adjust output format
1 parent 48c8f6c commit 82c1924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

general_json2yolo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def convert_coco_json(json_dir='../coco/annotations/', use_segments=False, cls91
314314
file.write(('%g ' * len(line)).rstrip() % line + '\n')
315315

316316
yaml_dict = {
317-
"names": {v: k for k, v in categories_dict.items()},
317+
"names": {k: v for k, v in categories_dict.items()},
318318
# "path": "yolo_datasets",
319319
"train": "images/train",
320320
"val": "images/val"

0 commit comments

Comments
 (0)