HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.43k stars 2.32k forks source link

Export polygons to YOLO #3562

Closed adlero4ek closed 1 year ago

adlero4ek commented 1 year ago

Hi. I use Label Studio as http://localhost:8080/ and want to export to YOLO format but «YOLO» blocked in the list of exporting options. How to fix it? Безымянный

makseq commented 1 year ago

Hi, you have to use RectangleLabels to enable Yolo export. Yolo supports only bounding boxes (rectangles).

ryouchinsa commented 1 year ago

Using this script, you can convert the COCO segmentation format to the YOLO segmentation format. https://github.com/ultralytics/JSON2YOLO

RectLabel is an offline image annotation tool for object detection and segmentation. Although this is not an open source program, with RectLabel you can read/write/export the YOLO segmentation format. https://rectlabel.com/help#xml_to_yolo

class_index x1 y1 x2 y2 x3 y3 ...
0 0.180027 0.287930 0.181324 0.280698 0.183726 0.270573 ...

yolo_polygon

makseq commented 1 year ago

@ryouchinsa what labeling config do you use? Could you share it please

ryouchinsa commented 1 year ago

Thanks for your response. For semantic segmentation with polygons, after labeling, we cannot choose the exporting YOLO option. As you know, this is the YOLO segmentation format. https://rectlabel.com/help#xml_to_yolo

class_index x1 y1 x2 y2 x3 y3 ...
0 0.180027 0.287930 0.181324 0.280698 0.183726 0.270573 ...

Both YOLOv5 and YOLOv8 are popular training tools. https://github.com/ultralytics/yolov5/releases/tag/v7.0 https://github.com/ultralytics/ultralytics

As a Label Studio user, we think you should correspond to the exporting option.

makseq commented 1 year ago

Thank you for your feedback, we will try to add a support soon.

makseq commented 1 year ago

Polygon segmentaion export is added to LS in the latest develop commits, will be delivered in v1.7.2. https://github.com/heartexlabs/label-studio/pull/3628

kawamucho commented 1 year ago

We RectLabel team apologize that we answered to your issues from your users comparing with our product. We removed all comments which did not have any responses from your team. Currently our comments are only in these 2 issues. https://github.com/heartexlabs/label-studio/issues/3457 https://github.com/heartexlabs/label-studio/issues/3562

But for these 2 issues, your team added the YOLOv5 segmentation format, so that we believe that we could contribute to your community. Currently @ryouchinsa is marked a spam account by your team. Could you turn off the spam setting? Please let us know your opinion.

Best regards, Ryo

Rohan-Python commented 2 months ago

How to export the shape file (In my case it is polygon not bounding box) from the detections? Can someone help please Thank You...