Args: *args: extra arguments for FLAME 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 = 'flame',
keypoint_dst: str = 'human_data',
keypoint_approximate: bool = False,
**kwargs)
| 20 | NUM_FACES = 9976 |
| 21 | |
| 22 | def __init__(self, |
| 23 | *args, |
| 24 | keypoint_src: str = 'flame', |
| 25 | keypoint_dst: str = 'human_data', |
| 26 | keypoint_approximate: bool = False, |
| 27 | **kwargs): |
| 28 | """ |
| 29 | Args: |
| 30 | *args: extra arguments for FLAME initialization. |
| 31 | keypoint_src: source convention of keypoints. This convention |
| 32 | is used for keypoints obtained from joint regressors. |
| 33 | Keypoints then undergo conversion into keypoint_dst |
| 34 | convention. |
| 35 | keypoint_dst: destination convention of keypoints. This convention |
| 36 | is used for keypoints in the output. |
| 37 | keypoint_approximate: whether to use approximate matching in |
| 38 | convention conversion for keypoints. |
| 39 | **kwargs: extra keyword arguments for FLAME initialization. |
| 40 | |
| 41 | Returns: |
| 42 | None |
| 43 | """ |
| 44 | super(FLAME, self).__init__(*args, **kwargs) |
| 45 | self.keypoint_src = keypoint_src |
| 46 | self.keypoint_dst = keypoint_dst |
| 47 | self.keypoint_approximate = keypoint_approximate |
| 48 | |
| 49 | self.num_verts = self.get_num_verts() |
| 50 | self.num_faces = self.get_num_faces() |
| 51 | self.num_joints = get_keypoint_num(convention=self.keypoint_dst) |
| 52 | |
| 53 | def forward(self, |
| 54 | *args, |
no test coverage detected