edgeai-yolov5 icon indicating copy to clipboard operation
edgeai-yolov5 copied to clipboard

How to convert labels

Open FreedomTrail opened this issue 2 years ago • 2 comments

❔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

FreedomTrail avatar Sep 14 '22 06:09 FreedomTrail

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

heylary avatar Nov 09 '22 07:11 heylary

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

ryouchinsa avatar Dec 29 '22 09:12 ryouchinsa