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

need yolo rel_xywh (where xy is the center) bbox converter? #2505

Closed
apiszcz opened this issue Nov 24, 2024 · 1 comment
Closed

need yolo rel_xywh (where xy is the center) bbox converter? #2505

apiszcz opened this issue Nov 24, 2024 · 1 comment
Assignees

Comments

@apiszcz
Copy link

apiszcz commented Nov 24, 2024

the yolo annoation format for a bounding box is class xctr yctr xwidth ywidth
the center and width values relative (0 to 1) scaled by the image size.
Does keras_cv/src/converters.py support this format?

rel_xywh uses the left, top for xy, not the center xy

Is there another API that supports this conversion?

yolo. In yolo , a bounding box is represented by four values [x_center, y_center, width, height] . x_center and y_center are the normalized coordinates of the center of the bounding box. To make coordinates normalized, we take pixel values of x and y, which marks the center of the bounding box on the x- and y-axis.

@apiszcz
Copy link
Author

apiszcz commented Nov 25, 2024

will convert with a custom function.

@apiszcz apiszcz closed this as completed Nov 25, 2024
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