Get number of keypoints of specified convention. Args: convention (str): data type from keypoints_factory. keypoints_factory (dict, optional): A class to store the attributes. Defaults to keypoints_factory. Returns: List[int]: part keypoint indices
(convention: str = 'smplx',
keypoints_factory: dict = KEYPOINTS_FACTORY)
| 385 | |
| 386 | |
| 387 | def get_keypoint_num(convention: str = 'smplx', |
| 388 | keypoints_factory: dict = KEYPOINTS_FACTORY) -> List[int]: |
| 389 | """Get number of keypoints of specified convention. |
| 390 | |
| 391 | Args: |
| 392 | convention (str): data type from keypoints_factory. |
| 393 | keypoints_factory (dict, optional): A class to store the attributes. |
| 394 | Defaults to keypoints_factory. |
| 395 | Returns: |
| 396 | List[int]: part keypoint indices |
| 397 | """ |
| 398 | keypoints = keypoints_factory[convention] |
| 399 | return len(keypoints) |