nicetoolbox.evaluation.metrics.point_cloud.Jpe¶
- class nicetoolbox.evaluation.metrics.point_cloud.Jpe(**kwargs: Any)[source]¶
Bases:
MetricCalculates the per joint position error for each frame.
Initializes the metric. Subclasses can use kwargs for specific setup.
Methods
Compute the final metric from the stored state.
Get the joint names the metric is concerned with.
Reset the metric's internal state.
Computes the per joint position error and stores it.
- compute() Dict[Tuple[str, str, str], List[BatchResult] | AggregatedResult][source]¶
Compute the final metric from the stored state.
- get_axis3(chunk: ChunkWorkItem) List[str][source]¶
Get the joint names the metric is concerned with.
- update(preds: torch.Tensor, gts: torch.Tensor, meta_chunk: ChunkWorkItem, meta_frames: List[FrameInfo]) None[source]¶
Computes the per joint position error and stores it.