nicetoolbox.evaluation.metrics.joints.pck

Classes

PCKMetric

Per-frame, per-joint PCK (Percentage of Correct Keypoints) with a fixed distance threshold.

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

Per-frame, per-joint PCK (Percentage of Correct Keypoints) with a fixed distance threshold.

A joint is “correct” if its L2 distance to ground truth is within the configured threshold (in the same units as the input coords — e.g. pixels for 2D).

Works with 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.