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

yolov7 segmentation on custom data #68

Open
hdm30 opened this issue Nov 8, 2023 · 1 comment
Open

yolov7 segmentation on custom data #68

hdm30 opened this issue Nov 8, 2023 · 1 comment

Comments

@hdm30
Copy link

hdm30 commented Nov 8, 2023

Hi,

I need to train yolov7 on custom data. I labeled my data using online annotation tool that generates coordinates of polygon boxes that look like the following: 0 100 120 150 160 300 580 400 700 ....
It seems that the format is different than yolo format. I'm wondering how should i proceed to convert the labels to yolo format.

Many thanks in advance.

@dsuitt1
Copy link

dsuitt1 commented Feb 6, 2024

I know this is an old comment, but for anyone else who might have the same question the yolo format for segmentation is class label x1 y1 x2 y2 ... xn yn but normalized by the image size. The values should be between 0 - 1. Divide the x values by image.shape[1] and the y values by image.shape[0].

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