-
Notifications
You must be signed in to change notification settings - Fork 636
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
can't open file 'convert_annotations.py' #85
Comments
The files here's what these files look like class-descriptions-boxable.csv So, using All you need to do now is: x_min = ...
x_max = ...
y_min = ...
y_max = ...
class_name_order_index = ...
x_values = [float(x_min), float(x_max)]
y_values = [float(y_min), float(y_max)]
center_x = (x_values[1] + x_values[0]) / 2
center_y = (y_values[1] + y_values[0]) / 2
w = x_values[1] - x_values[0]
h = y_values[1] - y_values[0]
print("{} {} {} {} {}".format(class_name_order_index, center_x, center_y, w, h))
# output
# 1 0.44781249999999995 0.775 0.45187499999999997 0.313334 here's the complete code that i use in my projects I hope to help someone |
Thanks man you , really save me. Please use this annotations file as , the convert_annotations.py file is generating values that are out of the bound for me. Please do check the values before you train. |
Hi, is there a file called 'convert_annotations.py' to convert the annotation into yolo form? I didn't find it.
Thank you:)
The text was updated successfully, but these errors were encountered: