From 41affc07d343f21c7412f154aabe6631f33e1f57 Mon Sep 17 00:00:00 2001 From: rooneysh Date: Wed, 18 Aug 2021 16:33:27 +0800 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6db2bfd..bdbc5ea 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,21 @@ Run python by below command. ```bash python labelme2yolo.py --json_dir /home/username/labelme_json_dir/ --val_size 0.2 ``` -Script would generate YOLO format dataset labels and images under different folders, for example: +Script would generate YOLO format dataset labels and images under different folders, for example, +```bash +/home/username/labelme_json_dir/YOLODataset/labels/train/ +/home/username/labelme_json_dir/YOLODataset/labels/val/ +/home/username/labelme_json_dir/YOLODataset/images/train/ +/home/username/labelme_json_dir/YOLODataset/images/val/ +``` + +If you already split train dataset and validation dataset for LabelMe by yourself, please put these folder under labelme_json_dir, for example, +```bash +/home/username/labelme_json_dir/train/ +/home/username/labelme_json_dir/val/ +``` +In this condition, --val_size would not work anymore. Script would read train and validation dataset by folder. +Script would generate YOLO format dataset labels and images under different folders, for example, ```bash /home/username/labelme_json_dir/YOLODataset/labels/train/ /home/username/labelme_json_dir/YOLODataset/labels/val/