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

Converting all_labels.csv to YOLOv3 format #2

Open
WellDL opened this issue Apr 29, 2020 · 0 comments
Open

Converting all_labels.csv to YOLOv3 format #2

WellDL opened this issue Apr 29, 2020 · 0 comments

Comments

@WellDL
Copy link

WellDL commented Apr 29, 2020

Actually not an issue, but maybe you can help me out in this.

I need the label information for YOLO training. For each image, there is a separate txt file containing the location of the bbox. For the training, I need the following order:

class_number x_center y_center width_bbox height_bbox

The values are not absolute, but rational to the width and height.
For example:

0 0.50 0.50 0.15 0.15

This example means the x_min and y_min are in the center of the image.
width and height are 0.15 of the image, however, if the width differs from height (f.e. 600x450), the bbox is not a square, but a rectangle.

At the end, the dataset in the directory for YOLO-training contains following:

ABC.jpg
ABC.txt
DEF.jpg
DEF.txt
...

Do you know how I can solve the convertion to YOLO format with using python?

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