AlexeyAB / Yolo_mark

GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2
https://github.com/AlexeyAB/darknet
The Unlicense
1.8k stars 680 forks source link

Converting images that were labeled in YOLOv2 format (xml) into a YOLOv3 format (txt) #189

Open claimae opened 4 years ago

claimae commented 4 years ago

Hello! I am looking to convert an existing dataset of already labeled images for used in yolov3. The already labeled images however were annotated for use with YOLOv2 with .xml files. Can I convert those .xml files into .txt files so that YOLOv3 will recognize them as bounding boxes?

We are hoping to not have to reannotate a large dataset just to get the .txt files that we need.

Thank you in advance for any input!

ferranmartinezlleida commented 4 years ago

I've been training with yolov3 a lot lately and I had to translate various formats to the yolov3 annotation format. I presume you can automate it in order to translate one format to another. With python is at most one morning of work to do the script, what is the format you are working? I haven't looked at yolov2 too much.