Skip to content

I can't properly convert from json to yolo segmentation. #100

@Kumoni123

Description

@Kumoni123

Hi everyone!

I have tagged with Grounding Sam ML Backend in Label Studio: https://labelstud.io/blog/using-text-prompts-for-image-annotation-with-grounding-dino-and-label-studio/ and this is the result of one image.

img1.

I exported it to COCO format I got a json file with rle format and I tried to convert it to yolo using this script: https://github.com/Kumoni123/InspectionVisual/blob/main/src/data/rle_to_yolo.py. I got a .txt file and then I trained the model with this script https://github.com/Kumoni123/InspectionVisual/blob/main/nb/Train_Seg.ipynb but the results of the yolo segmentation model are not very good.

This is the result:

image

I think the error is the way I convert the json file to yolo .txt.
Someone could help me to solve it? please.

All the results are in my github: https://github.com/Kumoni123/InspectionVisual

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions