Two Ways to Miss

Using Vision ModelsMedium+20 XP+20

Two Ways to Miss

A detector for a supermarket shelf camera is early in training. For one cereal box, the true box is GGG. Two of the detector's guesses, AAA and BBB, are the right size but in the wrong place. Boxes are given as (xmin⁡,ymin⁡,xmax⁡,ymax⁡)(x_{\min}, y_{\min}, x_{\max}, y_{\max})(xmin​,ymin​,xmax​,ymax​) in pixels, with yyy growing downwards.

boxxmin⁡x_{\min}xmin​ymin⁡y_{\min}ymin​xmax⁡x_{\max}xmax​ymax⁡y_{\max}ymax​
GGG (true)10105050
AAA6060100100
BBB901013050

Neither guess overlaps GGG at all. A training signal built on plain IoU therefore has nothing to say about which miss is the better one. Generalized IoU (GIoU) adds a second term for exactly this case.

Let CCC be the smallest rectangle, with sides parallel to the image edges, that contains both boxes. Then

GIoU=IoU−area(C)−area(union)area(C)\text{GIoU} = \text{IoU} - \frac{\text{area}(C) - \text{area}(\text{union})}{\text{area}(C)}GIoU=IoU−area(C)area(C)−area(union)​

where the union is the total area the two boxes cover between them. As with IoU, a higher GIoU means a better guess.

Compare each guess with GGG. Which statement is correct?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.