nicetoolbox.evaluation.metrics.joints.distance_error

Classes

DistanceErrorMetric

Per-frame, per-joint distance error between predictions and ground truth.

class nicetoolbox.evaluation.metrics.joints.distance_error.DistanceErrorMetric(metrics_config: BaseMetricConfig, config_handler: ConfigHandler)[source]

Per-frame, per-joint distance error between predictions and ground truth.

Supports L1 and L2 norms. Works with both 2D and 3D keypoints. The last coordinate dimension is assumed to be confidence and is dropped.

Parameters:
  • metrics_config – Metric-specific configuration.

  • config_handler – Shared config handler with project and evaluation configs.

compute() MetricResult[source]

Execute the metric end-to-end: load data, compute, return results.

Returns:

MetricResult containing summary tables, per-frame arrays, and plots.