MCPcopy Create free account
hub / github.com/MoyGcc/vid2avatar / forward

Method forward

preprocessing/preprocessing_utils.py:177–181  ·  view source on GitHub ↗
(self, joints, **kwargs)

Source from the content-addressed store, hash-verified

175 torch.tensor(joint_maps, dtype=torch.long))
176
177 def forward(self, joints, **kwargs):
178 if self.joint_maps is None:
179 return joints
180 else:
181 return torch.index_select(joints, 1, self.joint_maps)
182
183def transform_mat(R, t):
184 ''' Creates a batch of transformation matrices

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected