https://github.com/paveldat/coco-2-yolo
COCO to YOLO converter
https://github.com/paveldat/coco-2-yolo
Last synced: 4 months ago
JSON representation
COCO to YOLO converter
- Host: GitHub
- URL: https://github.com/paveldat/coco-2-yolo
- Owner: paveldat
- License: mit
- Created: 2023-11-15T22:06:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-18T12:03:17.000Z (over 1 year ago)
- Last Synced: 2025-01-07T19:45:33.968Z (6 months ago)
- Language: Python
- Size: 13.2 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## COCO2YOLO
COCO to YOLO converter.
Given the annotation JSON file, this tool will help you create TXT files for YOLO learning.
The TXT file has the same name as the image from which it was created.## Example of use
```bash
python3 coco2yolo.py -j labels.json -o output
```## Example of the created TXT file
```txt
67 0.281460 0.071347 0.222480 0.119120
48 0.453370 0.506373 0.674140 0.770773
```