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

Method __init__

usr/diffsinger_task.py:24–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22
23class DiffSingerTask(DiffSpeechTask):
24 def __init__(self):
25 super(DiffSingerTask, self).__init__()
26 self.dataset_cls = FastSpeechDataset
27 self.vocoder: BaseVocoder = get_vocoder_cls(hparams)()
28 if hparams.get('pe_enable') is not None and hparams['pe_enable']:
29 self.pe = PitchExtractor().cuda()
30 utils.load_ckpt(self.pe, hparams['pe_ckpt'], 'model', strict=True)
31 self.pe.eval()
32
33 def build_tts_model(self):
34 mel_bins = hparams['audio_num_mel_bins']

Callers 1

__init__Method · 0.45

Calls 3

get_vocoder_clsFunction · 0.90
PitchExtractorClass · 0.90
load_ckptMethod · 0.80

Tested by

no test coverage detected