MCPcopy Index your code
hub / github.com/MotrixLab/MotionDiffuse / load

Method load

text2motion/trainers/ddpm_trainer.py:169–174  ·  view source on GitHub ↗
(self, model_dir)

Source from the content-addressed store, hash-verified

167 return
168
169 def load(self, model_dir):
170 checkpoint = torch.load(model_dir, map_location=self.device)
171 if self.opt.is_train:
172 self.opt_encoder.load_state_dict(checkpoint['opt_encoder'])
173 self.encoder.load_state_dict(checkpoint['encoder'], strict=True)
174 return checkpoint['ep'], checkpoint.get('total_it', 0)
175
176 def train(self, train_dataset):
177 rank, world_size = get_dist_info()

Callers 11

trainMethod · 0.95
train.pyFile · 0.80
visualization.pyFile · 0.80
motion_process.pyFile · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
build_modelsFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected