|
|
|
|
|
|
|
|
# COCO2YOLO |
|
|
# COCO2YOLO |
|
|
COCO to YOLO converter |
|
|
COCO to YOLO converter |
|
|
[![](https://s18955.pcdn.co/wp-content/uploads/2018/02/github.png)](https://github.com/user/repository/subscription) |
|
|
|
|
|
|
|
|
|
|
|
# Usage |
|
|
# Usage |
|
|
|
|
|
|
|
|
`python COCO2YOLO.py -j coco.json -o path_to_dir` |
|
|
`python COCO2YOLO.py -j coco.json -o path_to_dir` |
|
|
### Or download [Release](https://github.com/alexmihalyk23/COCO2YOLO/releases/download/v1.0.0/COCO2YOLO.zip) and run |
|
|
|
|
|
|
|
|
### Or download [Release](https://github.com/alexmihalyk23/COCO2YOLO/releases/download/v1.0.0/) and run |
|
|
`COCO2YOLO.exe -j coco.json -o path_to_dir` |
|
|
`COCO2YOLO.exe -j coco.json -o path_to_dir` |
|
|
|
|
|
|
|
|
# To test the conversion you can run test.py |
|
|
# To test the conversion you can run test.py |
|
|
`python test.py -i img.jpg -t converted_to_yolo.txt` |
|
|
`python test.py -i img.jpg -t converted_to_yolo.txt` |
|
|
## Or |
|
|
## Or |
|
|
`python test_with_labels.py -i img.jpg -t converted_to_yolo.txt -l labels.txxxxxxt` |
|
|
|
|
|
|
|
|
`python test_with_labels.py -i img.jpg -t converted_to_yolo.txt -l labels.txt` |