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

Function binarize

data_gen/tts/bin/binarize.py:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def binarize():
10 binarizer_cls = hparams.get("binarizer_cls", 'data_gen.tts.base_binarizer.BaseBinarizer')
11 pkg = ".".join(binarizer_cls.split(".")[:-1])
12 cls_name = binarizer_cls.split(".")[-1]
13 binarizer_cls = getattr(importlib.import_module(pkg), cls_name)
14 print("| Binarizer: ", binarizer_cls)
15 binarizer_cls().process()
16
17
18if __name__ == '__main__':

Callers 1

binarize.pyFile · 0.85

Calls 1

processMethod · 0.45

Tested by

no test coverage detected