mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2025-01-31 05:33:41 +00:00
.. | ||
convert.py | ||
README.md | ||
yolov3.cfg.template |
Convert Dataturks json to YOLO format
The convert.py
script downloads the images and converts the annotations from the Dataturks json file to YOLO format.
Usage
- Clone or download this repository.
- Create folders for saving images and YOLO config files.
- Execute:
python3 convert.py -d <path/to/dataturks.json> -i <directory/to/save/downloaded/images/> -y <directory/to/save/yolo/config/files/>
Note: -v
flag can be used for detailed output.
Output
- Downloaded images along with their annotations in the specified directory.
- YOLO config files
train.txt, obj.names, obj.data, yolov3.cfg
saved in the specified directory.