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

Method __init__

detrsmpl/models/body_models/mano.py:45–74  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

43 }
44
45 def __init__(self,
46 *args,
47 keypoint_src: str = 'mano',
48 keypoint_dst: str = 'human_data',
49 keypoint_approximate: bool = False,
50 **kwargs):
51 """
52 Args:
53 *args: extra arguments for MANO initialization.
54 keypoint_src: source convention of keypoints. This convention
55 is used for keypoints obtained from joint regressors.
56 Keypoints then undergo conversion into keypoint_dst
57 convention.
58 keypoint_dst: destination convention of keypoints. This convention
59 is used for keypoints in the output.
60 keypoint_approximate: whether to use approximate matching in
61 convention conversion for keypoints.
62 **kwargs: extra keyword arguments for MANO initialization.
63
64 Returns:
65 None
66 """
67 super(MANO, self).__init__(*args, **kwargs)
68 self.keypoint_src = keypoint_src
69 self.keypoint_dst = keypoint_dst
70 self.keypoint_approximate = keypoint_approximate
71
72 self.num_verts = self.get_num_verts()
73 self.num_faces = self.get_num_faces()
74 self.num_joints = get_keypoint_num(convention=self.keypoint_dst)
75
76 def forward(self,
77 *args,

Callers 1

__init__Method · 0.45

Calls 3

get_keypoint_numFunction · 0.90
get_num_vertsMethod · 0.80
get_num_facesMethod · 0.80

Tested by

no test coverage detected