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

fix convert_bbox_to_albumentations when x_max > rows #770

Commits on Nov 30, 2020

  1. fix convert_bbox_to_albumentations whenx_max > rows

    convert_bbox_to_albumentations([0.53125, 0.551471, 0.9375, 0.736928] , 'yolo, 608, 608, check_validity=True) == ValueError: Expected x_max for bbox (0.06414473684210527, 0.18421052631578946, 1.0016447368421053, 0.9210526315789473, 0) to be in the range [0.0, 1.0], got 1.0016447368421053.
    Happens because in "convert_bbox_to_albumentations" after x_max = int(x_min + width), x_max == 609, but rows == 608.
     x_max = int(x_min + width) - 1 fix it.
    iMeleon committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    9c83857 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    b68cf6a View commit details
    Browse the repository at this point in the history