MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / load_state_dict

Method load_state_dict

trainer/base_trainer.py:341–353  ·  view source on GitHub ↗
(self, state_dict)

Source from the content-addressed store, hash-verified

339 return state_dict
340
341 def load_state_dict(self, state_dict):
342 # sets our state dicts on the model and optimizer, now that we've loaded
343 set_state_dict(
344 self.model,
345 self.optimizer,
346 model_state_dict=state_dict['model'],
347 optim_state_dict=state_dict['optim'],
348 )
349 if self.ema is not None:
350 set_state_dict(
351 self.ema,
352 model_state_dict=state_dict['ema'],
353 )
354
355
356class Timer:

Callers 3

load_modelMethod · 0.45
get_transformer3dFunction · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected