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

Method __init__

preprocessing/preprocessing_utils.py:169–175  ·  view source on GitHub ↗
(self, joint_maps=None)

Source from the content-addressed store, hash-verified

167
168class JointMapper(nn.Module):
169 def __init__(self, joint_maps=None):
170 super(JointMapper, self).__init__()
171 if joint_maps is None:
172 self.joint_maps = joint_maps
173 else:
174 self.register_buffer('joint_maps',
175 torch.tensor(joint_maps, dtype=torch.long))
176
177 def forward(self, joints, **kwargs):
178 if self.joint_maps is None:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected