(self, body_model, convention='smplx')
| 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 |
nothing calls this directly
no test coverage detected