Skip to content

keypoints

superset_keypoints_count(keypoints_metadata={})

Returns the number of keypoints in the superset.

Source code in inference/core/models/utils/keypoints.py
 7
 8
 9
10
11
12
13
def superset_keypoints_count(keypoints_metadata={}) -> int:
    """Returns the number of keypoints in the superset."""
    max_keypoints = 0
    for keypoints in keypoints_metadata.values():
        if len(keypoints) > max_keypoints:
            max_keypoints = len(keypoints)
    return max_keypoints