Operator description: Calculates the intersection over union (IOU) or intersection over foreground (IOF) of two sets of input bounding boxes to evaluate the overlap between the predicted bounding box (bBox) and the ground truth bounding box (gtBox).
Formulas:
Area_1 indicates the area of the bBox, Area_2 indicates the area of the gtBox, and Area_3 indicates the area of the overlapping part. For the definitions of x and y, see the parameter description.
$$
are a_1 = (X_1 - X_0)(Y_1 - Y_0) \ are a_2 = (X_3 - X_2)(Y_3 - Y_2) \ are a_3 = max( min(X_1, X_3) - max(X_0, X_2), 0 ) * max( min(Y_1, Y_3) - max(Y_0, Y_2), 0 ) $$
Each operator has calls. First, aclnnIouGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnIou is called to perform computation.
Parameters
[object Object]- [object Object]Atlas inference products[object Object]: The data type BFLOAT16 is not supported.
Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter validation. The following error codes may be returned.
[object Object]
- Deterministic computation:
- aclnnIou defaults to a deterministic implementation.
The following example is for reference only. For details, see .