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)
| 174 | } |
| 175 | |
| 176 | def __init__(self, |
| 177 | *args, |
| 178 | keypoint_src: str = 'mano', |
| 179 | keypoint_dst: str = 'human_data', |
| 180 | keypoint_approximate: bool = False, |
| 181 | **kwargs): |
| 182 | """ |
| 183 | Args: |
| 184 | *args: extra arguments for MANO initialization. |
| 185 | keypoint_src: source convention of keypoints. This convention |
| 186 | is used for keypoints obtained from joint regressors. |
| 187 | Keypoints then undergo conversion into keypoint_dst |
| 188 | convention. |
| 189 | keypoint_dst: destination convention of keypoints. This convention |
| 190 | is used for keypoints in the output. |
| 191 | keypoint_approximate: whether to use approximate matching in |
| 192 | convention conversion for keypoints. |
| 193 | **kwargs: extra keyword arguments for MANO initialization. |
| 194 | |
| 195 | Returns: |
| 196 | None |
| 197 | """ |
| 198 | super(MANOLayer, self).__init__(*args, **kwargs) |
| 199 | self.keypoint_src = keypoint_src |
| 200 | self.keypoint_dst = keypoint_dst |
| 201 | self.keypoint_approximate = keypoint_approximate |
| 202 | |
| 203 | self.num_verts = self.get_num_verts() |
| 204 | self.num_faces = self.get_num_faces() |
| 205 | self.num_joints = get_keypoint_num(convention=self.keypoint_dst) |
| 206 | |
| 207 | def forward(self, |
| 208 | *args, |
nothing calls this directly
no test coverage detected