AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.77k stars 7.96k forks source link

How To Convert Annotation Format (TxT) Form OpenImage to Yolo Format #4743

Open Mididou opened 4 years ago

Mididou commented 4 years ago

Hello Everyone , I have Downloaded Some 1000 Images From OpenImage With Their Bounding Boxes Coordinates , The Labels Looks Like This

( This Is For The First Image , 00a8ac773dff860e.jpg )

00a8ac773dff860e.txt

    `Shorts 178.56 749.44 238.07999999999998 812.16
     Shorts 254.079744 742.4 302.720256 807.04`

And I want to transform it to Yolo Format - Normalize The Coordinates - Any Suggestions On How To Do It ?

Any Feedback would be greatly appreciated , thank you .

RajashekarY commented 4 years ago

Use this repo https://github.com/RajashekarY/OIDv4_ToolKit which is managed to create annotations for specific classes in yoloV3 format

Mididou commented 4 years ago

@RajashekarY Thank you , but the thing is , i've actually used that Repo to download my images , but the annotation txt files is as showed above , and if i'm not mistaken , yolov3 needs the coordinates to be normalized.

Rajasekhar06 commented 4 years ago

Hey that's what I have made changes as per YOLOv3 requirements it's the fork of original @Mididou

MohammedRaheemP commented 3 years ago

https://github.com/MohammedRaheemP/bounding-box-and-annotations/blob/main/IMG_20210722_113801.jpg

go with this bro. easy to understand