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

Correct Label format #212

Open
Tareq69 opened this issue Mar 1, 2022 · 0 comments
Open

Correct Label format #212

Tareq69 opened this issue Mar 1, 2022 · 0 comments

Comments

@Tareq69
Copy link

Tareq69 commented Mar 1, 2022

Hi, I have a dataset that provides bounding boxes coordinates following this format.
height - 93 width - 108 x - 709 y- 408 label -1
Now, I want to normalize these data to train yolo.
I know there is 2 way I can normalize these values,
Way - 1 : Normalized(Xmin) = (Xmin+w/2)/Image_Width
Normalized(Ymin) = (Ymin+h/2)/Image_Height
Normalized(w) = w/Image_Width
Normalized(h) = h/Image_Height
Way - 2: divide x_center and width by image width, and y_center and height by image height.

I am not sure which way I should follow to normalize the given data? Can anyone please clear my confusion?

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

1 participant