Does yolo take polygon annotation files?
Laudarisd opened this issue · comments
Hi @glenn-jocher
I have a question regarding yolo annotation format.
Does YOLO take polygon types annotation boxes?
If yes, then how can we convert polygon to yolo format?
Thanks
请问可以吗 想把labelme标注的分割json 转为yolov5 txt
Hi @WANGCHAO1996,
You can convert the Labelme JSON files to the COCO format.
https://github.com/wkentaro/labelme/blob/main/examples/instance_segmentation/labelme2coco.py
You can convert the COCO JSON file to the YOLO segmentation format.
https://github.com/ultralytics/JSON2YOLO
Hi @WANGCHAO1996,
You can convert the Labelme JSON files to COCO format using the script at https://github.com/wkentaro/labelme/blob/main/examples/instance_segmentation/labelme2coco.py. Once you have the COCO JSON file, you can then use the JSON2YOLO script from the Ultralytics repo to convert it to the YOLO segmentation format.
I hope this information helps! If you have any further questions, feel free to ask.