vis4d.eval.metrics.flow

Depth estimation metrics.

Functions

angular_error(prediction, target[, epsilon])

Compute the angular error.

end_point_error(prediction, target)

Compute the end point error.

angular_error(prediction, target, epsilon=1e-06)[source]

Compute the angular error.

Parameters:
  • prediction (ArrayLike) – Prediction UV optical flow, in shape (…, 2).

  • target (ArrayLike) – Target UV optical flow, in shape (…, 2).

  • epsilon (float, optional) – Epsilon value for numerical stability.

Returns:

Angular error.

Return type:

float

end_point_error(prediction, target)[source]

Compute the end point error.

Parameters:
  • prediction (ArrayLike) – Prediction UV optical flow, in shape (…, 2).

  • target (ArrayLike) – Target UV optical flow, in shape (…, 2).

Returns:

End point error.

Return type:

float