-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Yolo Bboxes will generate tags larger than 1. #862
Comments
I have found a solution to this problem. labels format: yolo for i in range(len(bboxes)):
bboxes[i][2] = np.abs(bboxes[i][2] - 0.5 / image.shape[0])
bboxes[i][3] = np.abs(bboxes[i][3] - 0.5 / image.shape[1]) To further reduce the impact of processing, I only subtracted 0.5 pixels from the code. |
I raised an issue (#883) that could possibly explain this. |
Should be fixed by #924 |
Bboxes will generate tags larger than 1 when using 'albumentations' for data augmentation. Why? What should be done?
The error is as follows:
ValueError: Expected x_max for bbox (0.284, 0.15315315315315314, 1.002, 0.993993993993994, 6.0) to be in the range [0.0, 1.0], got 1.002.
The text was updated successfully, but these errors were encountered: