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

Method __init__

detrsmpl/models/body_models/mano.py:176–205  ·  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

174 }
175
176 def __init__(self,
177 *args,
178 keypoint_src: str = 'mano',
179 keypoint_dst: str = 'human_data',
180 keypoint_approximate: bool = False,
181 **kwargs):
182 """
183 Args:
184 *args: extra arguments for MANO initialization.
185 keypoint_src: source convention of keypoints. This convention
186 is used for keypoints obtained from joint regressors.
187 Keypoints then undergo conversion into keypoint_dst
188 convention.
189 keypoint_dst: destination convention of keypoints. This convention
190 is used for keypoints in the output.
191 keypoint_approximate: whether to use approximate matching in
192 convention conversion for keypoints.
193 **kwargs: extra keyword arguments for MANO initialization.
194
195 Returns:
196 None
197 """
198 super(MANOLayer, self).__init__(*args, **kwargs)
199 self.keypoint_src = keypoint_src
200 self.keypoint_dst = keypoint_dst
201 self.keypoint_approximate = keypoint_approximate
202
203 self.num_verts = self.get_num_verts()
204 self.num_faces = self.get_num_faces()
205 self.num_joints = get_keypoint_num(convention=self.keypoint_dst)
206
207 def forward(self,
208 *args,

Callers

nothing calls this directly

Calls 4

get_keypoint_numFunction · 0.90
get_num_vertsMethod · 0.80
get_num_facesMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected