-
Notifications
You must be signed in to change notification settings - Fork 74
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
[Feature request] Support for YOLO format bounding boxes #85
Comments
Hi @amirmk89 I'd suggest for option to supply label folder path separately since if the dataset is already split (as available in some public datasets, or has been used for training once), the label folder is usually separate. Also, can we please use pybboxes for getting the VOC annotation from yolo boxes? |
Hi @amirmk89 we would love to work with you to make you successful. |
Add support for YOLO format bounding box annotations.
We share this snippet to unblock current users and will include a thoroughly tested version in an upcoming release.
YOLO annotation format
The YOLO annotation contains directories with both image and annotation files,
with corresponding names and different suffixes (e.g.,
100.jpg
and100.txt
).Each
txt
file contains one line for each object, formatted as:[class, x_center, y_center, width, height]
with coordinates givenin the range of [0,1] relative to image dimensions.
E.g.:
Classes are given using integers of class strings.
Snippet for parsing a YOLO format data directory:
This is still under development. Please let us know if there are any further requests or issues.
Thanks
The text was updated successfully, but these errors were encountered: