From 96bd624e4d18a83e0bbd3e743031323d44754601 Mon Sep 17 00:00:00 2001 From: Ryuichi Yamamoto Date: Wed, 10 Jan 2018 14:20:14 +0900 Subject: [PATCH] will try this --- compute_timestamp_ratio.py | 8 ++++++++ hparams.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/compute_timestamp_ratio.py b/compute_timestamp_ratio.py index 3af18396..61ec453b 100644 --- a/compute_timestamp_ratio.py +++ b/compute_timestamp_ratio.py @@ -24,6 +24,14 @@ hparams.parse(args["--hparams"]) assert hparams.name == "deepvoice3" + # Presets + if hparams.preset is not None and hparams.preset != "": + preset = hparams.presets[hparams.preset] + import json + hparams.parse_json(json.dumps(preset)) + print("Override hyper parameters with preset \"{}\": {}".format( + hparams.preset, json.dumps(preset, indent=4))) + train._frontend = getattr(frontend, hparams.frontend) # Code below diff --git a/hparams.py b/hparams.py index d2b22d8c..15029dcf 100644 --- a/hparams.py +++ b/hparams.py @@ -68,7 +68,7 @@ "ref_level_db": 20, "n_speakers": 1, "downsample_step": 1, - "outputs_per_step": 1, + "outputs_per_step": 4, "embedding_weight_std": 0.1, "dropout": 1 - 0.95, "kernel_size": 3,