From 24ffa9e9f696121cb5326b3cba0659032d571b94 Mon Sep 17 00:00:00 2001 From: Branislav Gerazov Date: Fri, 5 Feb 2021 13:10:02 +0100 Subject: [PATCH] update wavernn test config, delete cap=True --- TTS/vocoder/utils/generic_utils.py | 2 +- tests/inputs/test_vocoder_wavernn_config.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TTS/vocoder/utils/generic_utils.py b/TTS/vocoder/utils/generic_utils.py index b43a1263..05ceba6b 100644 --- a/TTS/vocoder/utils/generic_utils.py +++ b/TTS/vocoder/utils/generic_utils.py @@ -61,7 +61,7 @@ def plot_results(y_hat, y, ap, global_step, name_prefix): return figures -def to_camel(text, cap=True): +def to_camel(text): text = text.capitalize() return re.sub(r'(?!^)_([a-zA-Z])', lambda m: m.group(1).upper(), text) diff --git a/tests/inputs/test_vocoder_wavernn_config.json b/tests/inputs/test_vocoder_wavernn_config.json index 9df32fef..3c6d06f5 100644 --- a/tests/inputs/test_vocoder_wavernn_config.json +++ b/tests/inputs/test_vocoder_wavernn_config.json @@ -54,6 +54,9 @@ "mulaw": false, // apply mulaw if mode is bits "padding": 2, // pad the input for resnet to see wider input length + // GENERATOR - for backward compatibility + "generator_model": "WaveRNN", + // DATASET //"use_gta": true, // use computed gta features from the tts model "data_path": "tests/data/ljspeech/wavs/", // path containing training wav files