HumanSignal / label-studio-converter

Tools for converting Label Studio annotations into common dataset formats
https://labelstud.io/
262 stars 130 forks source link

fix: Only rectangles and polygon for YOLO/COCO export #243

Closed luuzk closed 5 months ago

luuzk commented 1 year ago

This PR extends PR #196 and fixes issue https://github.com/HumanSignal/label-studio/issues/3556.

Only allow specific label types to be added to YOLO/COCO export. Otherwise metadata classes are added to classes.txt which causes errors for many YOLO models since the number of classes in classes.txt is higher than in the actual label files.

RectangleLabels, Rectangle, PolygonLabels and Polygon are allowed for YOLO and COCO export now. Tests are extended to cover the presence of a Choices label tag.

makseq commented 5 months ago

After careful consideration, we’ve determined that this is more of an improvement than a critical bug. Additionally, it seems to be an outdated request and hasn’t garnered much interest from the community. For these reasons, we will be closing this issue. We will continue developing the converter library as a part of Label Studio SDK.

We appreciate your understanding and encourage you to submit your feedback, questions and suggestions here: https://github.com/HumanSignal/label-studio-sdk