Method
encode_motion
(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 |
Tested by
no test coverage detected