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

Method load_pretrained

diffplanner/models/rnns/t2m_bigru.py:124–126  ·  view source on GitHub ↗
(self, ckpt_path)

Source from the content-addressed store, hash-verified

122 self.max_text_len = max_text_len
123
124 def load_pretrained(self, ckpt_path):
125 checkpoint = torch.load(ckpt_path, map_location='cpu')
126 self.text_encoder.load_state_dict(checkpoint['text_encoder'])
127
128 def forward(self, text, token, device):
129 B = len(text)

Callers 2

get_motion_modelFunction · 0.45
get_text_modelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected