Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kumoni123 opened this issue Aug 14, 2024 · 1 comment
Open

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

Kumoni123 opened this issue Aug 14, 2024 · 1 comment

Comments

@Kumoni123
Copy link

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

@glenn-jocher
Copy link
Member

@Kumoni123 it sounds like the issue might be with the conversion process. I recommend using the JSON2YOLO tool provided by Ultralytics for converting COCO format to YOLO format. Ensure your dataset is correctly formatted before training. You can find more details in the Ultralytics documentation. If the problem persists, try verifying with the latest version of the tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants