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

Method load_pretrained

mogen/models/rnns/t2m_bigru.py:85–88  ·  view source on GitHub ↗
(self, ckpt_path)

Source from the content-addressed store, hash-verified

83 output_size=motion_latent_size)
84
85 def load_pretrained(self, ckpt_path):
86 checkpoint = torch.load(ckpt_path, map_location='cpu')
87 self.movement_encoder.load_state_dict(checkpoint['movement_encoder'])
88 self.motion_encoder.load_state_dict(checkpoint['motion_encoder'])
89
90 def forward(self, motion, motion_length, motion_mask):
91 motion = motion.detach().float()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected