TexasInstruments / edgeai-yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite. Forked from https://ultralytics.com/yolov5
https://github.com/TexasInstruments/edgeai
GNU General Public License v3.0
642 stars 121 forks source link

How to convert labels #68

Open FreedomTrail opened 2 years ago

FreedomTrail commented 2 years ago

❔Question

This [repository] was used with required changes to generate the dataset in the required format. Please download the processed labels from [here]

How to convert the labels? is there any python script? I have other dataset adding into coco to train.

Additional context

heylary commented 1 year ago

Have you solved it please, the repository provided by the author only provides the script to convert xyhw, not the key points of

ryouchinsa commented 1 year ago

RectLabel is an offline image annotation tool for object detection and segmentation. With RectLabel, you can import the COCO keypoints format and export to the YOLO keypoints format.

class_index center_x center_y width height x1 y1 v1 x2 v2 y2 x3 y3 v3 ...
0 0.545230 0.616880 0.298794 0.766239 0.522073 0.309332 2 0.540170 0.293193 2 0.499589 0.296503 2 ...

A visibility flag v defined as v=0: not labeled (in which case x=y=0), v=1: labeled but not visible, and v=2: labeled and visible. https://cocodataset.org/#format-data

yolo_polygon