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

Method __init__

usr/singingvocoder/highgan.py:38–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36
37class HighGAN(BaseVocoder):
38 def __init__(self):
39 vocoder_ckpt = hparams['vocoder_ckpt']
40 checkpoint_path = "highgan/" + vocoder_ckpt
41 config_path = os.path.dirname(checkpoint_path) + "/config.yml"
42 model, self.config = load_model_config(checkpoint_path, config_path)
43 self.model = model.eval().to('cuda')
44
45 def spec2wav(self, mel, **kwargs):
46 f0 = kwargs['f0']

Callers

nothing calls this directly

Calls 1

load_model_configFunction · 0.85

Tested by

no test coverage detected