yolo2voc

Convert YOLO to Pascal VOC format or Pascal to YOLO format

Usage:

git clone https://github.com/yakhyo/yolo2voc.git
cd yolo2voc
pip install -r requirements.txt

Pascal VOC To YOLO

main.py --voc2yolo

zidane.jpg

downloaded from ultralytics

The label file corresponding to the above image contains 2 persons (class 0) and a tie (class 27):

<object-class> <x> <y> <width> <height>

<img src="assets/zidane_txt.jpg", height="200px" alt="downloaded from ultralytics">

Pascal VOC To YOLO Absolute

main.py --voc2yolo_a

1 255 247 425 468
0 470 105 680 468
1 152 356 658 754

Reference

  1. https://github.com/AlexeyAB/Yolo_mark/issues/60
  2. https://github.com/jahongir7174/YOLO2VOC