Args: *args: extra arguments for MANO initialization. keypoint_src: source convention of keypoints. This convention is used for keypoints obtained from joint regressors. Keypoints then undergo conversion into keypoint_dst
(self,
*args,
keypoint_src: str = 'mano',
keypoint_dst: str = 'human_data',
keypoint_approximate: bool = False,
**kwargs)
| 43 | } |
| 44 | |
| 45 | def __init__(self, |
| 46 | *args, |
| 47 | keypoint_src: str = 'mano', |
| 48 | keypoint_dst: str = 'human_data', |
| 49 | keypoint_approximate: bool = False, |
| 50 | **kwargs): |
| 51 | """ |
| 52 | Args: |
| 53 | *args: extra arguments for MANO initialization. |
| 54 | keypoint_src: source convention of keypoints. This convention |
| 55 | is used for keypoints obtained from joint regressors. |
| 56 | Keypoints then undergo conversion into keypoint_dst |
| 57 | convention. |
| 58 | keypoint_dst: destination convention of keypoints. This convention |
| 59 | is used for keypoints in the output. |
| 60 | keypoint_approximate: whether to use approximate matching in |
| 61 | convention conversion for keypoints. |
| 62 | **kwargs: extra keyword arguments for MANO initialization. |
| 63 | |
| 64 | Returns: |
| 65 | None |
| 66 | """ |
| 67 | super(MANO, self).__init__(*args, **kwargs) |
| 68 | self.keypoint_src = keypoint_src |
| 69 | self.keypoint_dst = keypoint_dst |
| 70 | self.keypoint_approximate = keypoint_approximate |
| 71 | |
| 72 | self.num_verts = self.get_num_verts() |
| 73 | self.num_faces = self.get_num_faces() |
| 74 | self.num_joints = get_keypoint_num(convention=self.keypoint_dst) |
| 75 | |
| 76 | def forward(self, |
| 77 | *args, |
no test coverage detected