MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / get_keypoint_num

Function get_keypoint_num

detrsmpl/core/conventions/keypoints_mapping/__init__.py:387–399  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

385
386
387def 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)

Callers 9

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected