| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
script for convert annotations from one format to another format
python convert.py --input-folder ./data/input \
--output-folder ./data/output \
--input-format \
--output-formatCurrently, the following formats are supported:
| from | to | implemented |
|---|---|---|
| PASCAL VOC | YOLO(TXT files) | Yes |
| PASCAL VOC | COCO (JSON files) | No |
| COCO | PASCAL VOC (XML files) | No |
| COCO | YOLO (TXT files) | No |
| YOLO | COCO (JSON files) | No |
| YOLO | PASCAL VOC (XML files) | Yes |
git clone https://github.com/codePerfectPlus/dataset-convertor/cd dataset-convertor
python -m venv venvsource venv/bin/activate
pip install requirements.txtconvert annotations from one format to another format.
dataset formatting example:
- data/pascal_voc/JPEGImages/*.jpg - data/pascal_voc/Annotations/*.xml - data/yolo5/JPEGImages/*.jpg - data/yolo5/labels/*.txt
# example command for pascal-voc(xml) to yolo(txt)
python convert.py --input-folder ./data/pascal_voc \
--output-folder ./output/yolo5 \
--input-format voc \
--output-format yolo| Back | FazBrowse Home | New Git URL |