MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / load_state_dict

Method load_state_dict

mGPT/models/base.py:88–90  ·  view source on GitHub ↗
(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

86 return new_state_dict
87
88 def load_state_dict(self, state_dict, strict=True):
89 new_state_dict = self.preprocess_state_dict(state_dict)
90 super().load_state_dict(new_state_dict, strict)
91
92 def step_log_dict(self):
93 return {

Callers 7

app.pyFile · 0.80
mainFunction · 0.80
load_pretrainedFunction · 0.80
load_pretrained_vaeFunction · 0.80
_get_t2m_evaluatorMethod · 0.80
_get_t2m_evaluatorMethod · 0.80
_get_t2m_evaluatorMethod · 0.80

Calls 1

preprocess_state_dictMethod · 0.95

Tested by

no test coverage detected