c16095bc55
* Drop support for discrete F0 embedding (reserved in ONNX exporter) * Drop support for `interp_uv` configuration key * Drop support for `train_set_name` and `valid_set_name` configuration keys * Drop support for linear domain of random time stretching augmentation * Drop support for `num_pad_tokens` configuration key * Drop support for code backup before training * Drop support for `ffn_padding` configuration key * Drop support for random seeding * Add placeholder to load old checkpoint * Remove duplicate txt_embed layer (resuming may raise errors) * Remove migration script and error message for transcriptions.txt * Remove seed from batch shuffling * Use direct access on some hparam keys * Fix duplicate keys in YAML * Rename `pndm_speedup` to `diff_speedup`
26 lines
593 B
Python
26 lines
593 B
Python
import importlib
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
root_dir = Path(__file__).parent.parent.resolve()
|
|
os.environ['PYTHONPATH'] = str(root_dir)
|
|
sys.path.insert(0, str(root_dir))
|
|
|
|
from utils.hparams import set_hparams, hparams
|
|
|
|
set_hparams()
|
|
|
|
|
|
def binarize():
|
|
binarizer_cls = hparams["binarizer_cls"]
|
|
pkg = ".".join(binarizer_cls.split(".")[:-1])
|
|
cls_name = binarizer_cls.split(".")[-1]
|
|
binarizer_cls = getattr(importlib.import_module(pkg), cls_name)
|
|
print("| Binarizer: ", binarizer_cls)
|
|
binarizer_cls().process()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
binarize()
|