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

Clarification Needed on Bounding Box Coordinate Conversion for AI-TOD Dataset in YOLO Format #30

Open
sinanutkuulu opened this issue Nov 10, 2023 · 1 comment

Comments

@sinanutkuulu
Copy link

Hello,

I have converted the AI-TOD dataset to the YOLO format. In your paper, you describe the bounding box representations as bi = (cxi, cyi, wi, hi), where cxi and cyi are the center coordinates. During the conversion process, I interpreted cxi and cyi as the actual center coordinates. However, I encountered an issue during training: YOLO does not accept negative values, and some of my bounding box representations contain negative values.

I believe this issue arose because I might have misunderstood the representation of cxi and cyi. To clarify, should I have calculated these center coordinates by summing the two values and then dividing by two? Or was my initial interpretation of using cxi and cyi as direct center coordinates correct?

I'm seeking clarification to understand if my conversion approach was incorrect. Any guidance would be greatly appreciated.

@Chasel-Tsui
Copy link
Collaborator

Hi, we follow the coco format in AI-TOD, the (x, y) in (x, y, w, h) seem to be the top left corner point coordinates. The boxes with negative values may be introduced during the image cropping or labelling process, I think they only account for a very small proportion of the dataset, you can simply filter out them. In order to obtain the YOLO format, you need to convert the coordinates to center coordinates, you need also to normalize them by the image size.

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