MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / load_ckpt

Method load_ckpt

tasks/base_task.py:108–112  ·  view source on GitHub ↗
(self, ckpt_base_dir, current_model_name=None, model_name='model', force=True, strict=True)

Source from the content-addressed store, hash-verified

106 raise NotImplementedError
107
108 def load_ckpt(self, ckpt_base_dir, current_model_name=None, model_name='model', force=True, strict=True):
109 # This function is updated on 2021.12.13
110 if current_model_name is None:
111 current_model_name = model_name
112 utils.load_ckpt(self.__getattr__(current_model_name), ckpt_base_dir, current_model_name, force, strict)
113
114 def on_epoch_start(self):
115 self.training_losses_meter = {'total_loss': utils.AvgrageMeter()}

Callers 5

__init__Method · 0.80
build_tts_modelMethod · 0.80
build_tts_modelMethod · 0.80
test_startMethod · 0.80
build_modelMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_startMethod · 0.64