Hello,
I was trying to use iou loss in PyTorch, but the document is not clear in terms of x1, y1, x2, y2
. Do x1, y1
refer to one bbox’s top left corner while x2, y2
stand for the bottom right corner? Assume the coordinate system is as follows: x
is in horizontal axis and y
is in vertical axis and (0, 0)
is in the top left corner of an image.
https://pytorch.org/vision/main/generated/torchvision.ops.distance_box_iou_loss.html
https://pytorch.org/vision/main/generated/torchvision.ops.generalized_box_iou_loss.html
Thanks!