Skip to content

Instantly share code, notes, and snippets.

@Amir22010
Amir22010 / convert_voc_to_yolo.md
Created Feb 22, 2020 — forked from myounus96/convert_voc_to_yolo.md
convert pascal voc dataset to yolo format
View convert_voc_to_yolo.md

Convert PascalVOC Annotations to YOLO

This script reads PascalVOC xml files, and converts them to YOLO txt files.

Note: This script was written and tested on Ubuntu. YMMV on other OS's.

Disclaimer: This code is a modified version of Joseph Redmon's voc_label.py

Instructions:

  1. Place the convert_voc_to_yolo.py file into your data folder.