You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and 100.txt).
Each txt file contains one line for each object, formatted as: [class, x_center, y_center, width, height] with coordinates given
in the range of [0,1] relative to image dimensions.
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?
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: