cs-chan / Exclusively-Dark-Image-Dataset

Exclusively Dark (ExDARK) dataset which to the best of our knowledge, is the largest collection of low-light images taken in very low-light environments to twilight (i.e 10 different conditions) to-date with image class and object level annotations.
BSD 3-Clause "New" or "Revised" License
530 stars 103 forks source link

How to export ExDark in Yolov3 format for training? #19

Open zhengpengen opened 3 years ago

zhengpengen commented 3 years ago

I noticed that the bounding boxes were all in pixel values, so I was wondering if there's any way to export/change the ground truth boxes from that to the yolov3 notation other than going into every txt file and manually changing it?

Yolov3 notation

object class x value of center of ground truth/image width y value of center of ground truth/image height height of ground truth/image width width of ground truth/image width

Example: 1 0.716797 0.395833 0.216406 0.147222