MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / __init__

Method __init__

detrsmpl/models/utils/SMPLX.py:18–33  ·  view source on GitHub ↗
(self, body_model, convention='smplx')

Source from the content-addressed store, hash-verified

16 (right_hand_pose, left_hand_pose, wrist_pose) in predictions from body
17 model."""
18 def __init__(self, body_model, convention='smplx'):
19 self.body_model = body_model
20 self.convention = convention
21 self.left_hand_idxs = get_keypoint_idxs_by_part(
22 'left_hand', self.convention)
23 self.left_wrist_idx = get_keypoint_idx('left_wrist', self.convention)
24 self.left_hand_idxs.append(self.left_wrist_idx)
25 self.left_wrist_kin_chain = find_joint_kin_chain(
26 self.left_wrist_idx, self.body_model.parents)
27
28 self.right_hand_idxs = get_keypoint_idxs_by_part(
29 'right_hand', self.convention)
30 self.right_wrist_idx = get_keypoint_idx('right_wrist', self.convention)
31 self.right_hand_idxs.append(self.right_wrist_idx)
32 self.right_wrist_kin_chain = find_joint_kin_chain(
33 self.right_wrist_idx, self.body_model.parents)
34
35 def __call__(self, body_predictions, hand_predictions):
36 """Function

Callers

nothing calls this directly

Calls 3

get_keypoint_idxFunction · 0.90
find_joint_kin_chainFunction · 0.90

Tested by

no test coverage detected