edgeai-yolov5
edgeai-yolov5 copied to clipboard
How to convert labels
❔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
Have you solved it please, the repository provided by the author only provides the script to convert xyhw, not the key points of
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