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

Method __init__

data_gen/singing/binarize.py:34–45  ·  view source on GitHub ↗
(self, processed_data_dir=None)

Source from the content-addressed store, hash-verified

32
33class SingingBinarizer(BaseBinarizer):
34 def __init__(self, processed_data_dir=None):
35 if processed_data_dir is None:
36 processed_data_dir = hparams['processed_data_dir']
37 self.processed_data_dirs = processed_data_dir.split(",")
38 self.binarization_args = hparams['binarization_args']
39 self.pre_align_args = hparams['pre_align_args']
40 self.item2txt = {}
41 self.item2ph = {}
42 self.item2wavfn = {}
43 self.item2f0fn = {}
44 self.item2tgfn = {}
45 self.item2spk = {}
46
47 def load_meta_data(self):
48 for ds_id, processed_data_dir in enumerate(self.processed_data_dirs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected