Algorithm 1: 3D Generalized Intersection Over Union Loss
|
Input: The information of the predicted and ground truth bounding box:
Output:
-
1.
Calculating projections and of box and on the bird’s eye view, respectively.
-
2.
the information of smallest enclosing box;
-
3.
the area of the 2D box ;
-
4.
the area of the 2D box ;
-
5.
the area of the 2D box ;
-
6.
intersection between and ;
-
7.
union between and ;
-
8.
the height of the intersection of and
-
9.
the height of the union of and
-
10.
the volume of the 3D box ;
-
11.
the volume of the 3D box ;
-
12.
the volume of the 3D box , where represents the smallest 3D enclosing box;
-
13.
Calculating intersection of and :
if
else:
if:
else:
-
14.
, where ;
-
15.
;
-
16.
|