choose the best iou box
mama110 opened this issue · 1 comments
mama110 commented
box1_xyxy[:,:2] = box1[:,:2]/14. -0.5*box1[:,2:4]
What's that code mean? Why divide 14 and multiply 0.5?
Thank you .
abeardear commented
box[:,:2] is the center of box, divide 14(grid num) to remap it to location relative to the whole image.
box[:,2:4] is the width and height of object, multiply 0.5 to compute top-left corner and bottom-right corner.