Skip to content

Commit

Permalink
will try this
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Jan 31, 2018
1 parent bf8b348 commit 61fc470
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions compute_timestamp_ratio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 61fc470

Please sign in to comment.