MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / _get_body_keypoints

Method _get_body_keypoints

tools/preprocess/process_pipepline.py:57–69  ·  view source on GitHub ↗
(pose_meta)

Source from the content-addressed store, hash-verified

55
56 @staticmethod
57 def _get_body_keypoints(pose_meta):
58 if pose_meta is None:
59 return None
60 body_keypoints = pose_meta.get("keypoints_body")
61 if body_keypoints is None:
62 return None
63 try:
64 body_keypoints = np.asarray(body_keypoints, dtype=np.float32)
65 except (TypeError, ValueError):
66 return None
67 if body_keypoints.ndim != 2 or body_keypoints.shape[1] < 3:
68 return None
69 return body_keypoints
70
71 @classmethod
72 def _get_valid_body_keypoint_mask(cls, pose_meta, keypoint_indices=None):

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected