Update README.md
This commit is contained in:
parent
cb3fcb8db1
commit
41affc07d3
16
README.md
16
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/
|
||||
|
|
Loading…
Reference in New Issue