LabeledDataο
- class lightning_pose.utils.io.LabeledData[source]ο
Bases:
objectResult of parsing a label CSV file.
- keypoint_namesο
ordered list of keypoint name strings
- Type:
list[str]
- image_namesο
ordered list of image path strings (relative to the project root)
- Type:
list[str]
- keypointsο
(N, K, 2)float tensor of(x, y)coordinates; NaN where unlabeled- Type:
jaxtyping.Float[Tensor, βnum_frames num_keypoints 2β]
- visibilityο
(N, K)int64 tensor of per-keypoint visibility flags (0, 1, or 2), orNonewhen the CSV does not contain avisiblecolumn- Type:
jaxtyping.Int[Tensor, βnum_frames num_keypointsβ] | None
Attributes Summary
Attributes Documentation
- image_names: list[str] = <dataclasses._MISSING_TYPE object>ο
- keypoint_names: list[str] = <dataclasses._MISSING_TYPE object>ο
- keypoints: Float[Tensor, 'num_frames num_keypoints 2'] = <dataclasses._MISSING_TYPE object>ο
- visibility: Int[Tensor, 'num_frames num_keypoints'] | None = <dataclasses._MISSING_TYPE object>ο
- __init__(keypoint_names: list[str], image_names: list[str], keypoints: Float[Tensor, 'num_frames num_keypoints 2'], visibility: Int[Tensor, 'num_frames num_keypoints'] | None) Noneο
- __new__(**kwargs)ο