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
Currently, draw_bounding_boxes does not sanity check the input bounding boxes to ensure that (xmax, ymax) >= (xmin, ymin). This can lead to unexpected output that can be difficult to debug if the user, say, inputs boxes in cxcywh format.
I could make a PR for this if needed but would prefer if someone else did it since I have my hands full with a PR I'm working on for PyTorch proper.
Motivation, pitch
I personally just ran into this problem and I thought something was wrong with my network for a while.
Currently, the box conversion ops do this check, and it seems at least as important to do the same check in draw_bounding_boxes.