From 879d946f10cea343d83b097ae7a863cba6d07da9 Mon Sep 17 00:00:00 2001 From: Thorsten Mueller Date: Sat, 30 Jan 2021 13:44:12 +0100 Subject: [PATCH 1/4] Ups. Added missing , --- TTS/bin/compute_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/bin/compute_statistics.py b/TTS/bin/compute_statistics.py index 5c1796ea..a74fe90a 100755 --- a/TTS/bin/compute_statistics.py +++ b/TTS/bin/compute_statistics.py @@ -19,7 +19,7 @@ def main(): description="Compute mean and variance of spectrogtram features.") parser.add_argument("--config_path", type=str, required=True, help="TTS config file path to define audio processin parameters.") - parser.add_argument("--out_path", type=str, required=True + parser.add_argument("--out_path", type=str, required=True, help="save path (directory and filename).") args = parser.parse_args() From c75ea74914851ea5d6d549db33cc3a48b7a442ca Mon Sep 17 00:00:00 2001 From: Thorsten Mueller Date: Wed, 27 Jan 2021 16:19:02 +0100 Subject: [PATCH 2/4] Added info if model already downloaded in --list_models --- TTS/utils/manage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TTS/utils/manage.py b/TTS/utils/manage.py index 25b3d797..af741156 100644 --- a/TTS/utils/manage.py +++ b/TTS/utils/manage.py @@ -52,7 +52,12 @@ class ModelManager(object): for lang in self.models_dict[model_type]: for dataset in self.models_dict[model_type][lang]: for model in self.models_dict[model_type][lang][dataset]: - print(f" >: {model_type}/{lang}/{dataset}/{model} ") + model_full_name = f"{model_type}--{lang}--{dataset}--{model}" + output_path = os.path.join(self.output_prefix, model_full_name) + if os.path.exists(output_path): + print(f" >: {model_type}/{lang}/{dataset}/{model} [already downloaded]") + else: + print(f" >: {model_type}/{lang}/{dataset}/{model}") def download_model(self, model_name): """Download model files given the full model name. From 4cb4fcf02cda3624000f47fdb3c53a0a6b11cbac Mon Sep 17 00:00:00 2001 From: Thorsten Mueller Date: Fri, 29 Jan 2021 17:23:38 +0100 Subject: [PATCH 3/4] Set out_path to be required param. --- TTS/bin/compute_statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TTS/bin/compute_statistics.py b/TTS/bin/compute_statistics.py index 7642f86b..5c1796ea 100755 --- a/TTS/bin/compute_statistics.py +++ b/TTS/bin/compute_statistics.py @@ -19,8 +19,8 @@ def main(): description="Compute mean and variance of spectrogtram features.") parser.add_argument("--config_path", type=str, required=True, help="TTS config file path to define audio processin parameters.") - parser.add_argument("--out_path", default=None, type=str, - help="directory to save the output file.") + parser.add_argument("--out_path", type=str, required=True + help="save path (directory and filename).") args = parser.parse_args() # load config From a82152eef353d30975c197426d66fb00d969d5cb Mon Sep 17 00:00:00 2001 From: Thorsten Mueller Date: Sat, 30 Jan 2021 13:44:12 +0100 Subject: [PATCH 4/4] Ups. Added missing , --- TTS/bin/compute_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/bin/compute_statistics.py b/TTS/bin/compute_statistics.py index 5c1796ea..a74fe90a 100755 --- a/TTS/bin/compute_statistics.py +++ b/TTS/bin/compute_statistics.py @@ -19,7 +19,7 @@ def main(): description="Compute mean and variance of spectrogtram features.") parser.add_argument("--config_path", type=str, required=True, help="TTS config file path to define audio processin parameters.") - parser.add_argument("--out_path", type=str, required=True + parser.add_argument("--out_path", type=str, required=True, help="save path (directory and filename).") args = parser.parse_args()