nicetoolbox.evaluation.metrics.keypoint.BoneLength¶
- class nicetoolbox.evaluation.metrics.keypoint.BoneLength(keypoints_mapping: Dict[str, Any])[source]¶
Bases:
MetricCalculates the bone lengths for each frame using 3D only keypoints.
Initializes the metric. Subclasses can use kwargs for specific setup.
Methods
Compute the final metric from the stored state.
Get the bone names the metric is concerned with.
Reset the metric's internal state.
Computes the bone lengths and stores them.
- compute() Dict[Tuple[str, str, str], List[BatchResult] | AggregatedResult][source]¶
Compute the final metric from the stored state.
- update(preds: torch.Tensor, gts: None, meta_chunk: ChunkWorkItem, meta_frames: List[FrameInfo]) None[source]¶
Computes the bone lengths and stores them.