MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / encode_motion

Method encode_motion

mogen/models/transformers/intergen.py:166–174  ·  view source on GitHub ↗
(self,
                      motion,
                      motion_length=None,
                      motion_mask=None,
                      **kwargs)

Source from the content-addressed store, hash-verified

164 return src_mask
165
166 def encode_motion(self,
167 motion,
168 motion_length=None,
169 motion_mask=None,
170 **kwargs):
171 motion_emb = self.motion_encoder(motion, motion_mask)
172 motion_emb = motion_emb / motion_emb.norm(dim=-1, keepdim=True)
173 motion_emb = motion_emb * self.latent_scale
174 return motion_emb
175
176 def encode_text(self, text, device=None, **kwargs):
177 raw_text = text

Callers 1

compute_lossMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected