Skip to content

Commit

Permalink
minor fixes to make training work
Browse files Browse the repository at this point in the history
  • Loading branch information
ntt123 committed May 6, 2021
1 parent b86fc00 commit 1fcfb3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ Synthesize speech
-----------------

```sh
python3 -m vietTTS.synthesizer --use-nat --text="hôm qua em tới trường" --output=clip.wav
python3 -m vietTTS.synthesizer --use-nat --lexicon-file train_data/lexicon.txt --text="hôm qua em tới trường" --output=clip.wav
```
2 changes: 1 addition & 1 deletion vietTTS/waveRNN/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class FLAGS:

# training config
ckpt_dir = Path('assets/reinfo/waveRNN')
wav_data_dir = Path('/tmp/reinfo/raw/pp')
wav_data_dir = Path('train_data')
sample_rate = 16_000
variance_loss_scale = 0.1 # regularization term
2 changes: 1 addition & 1 deletion vietTTS/waveRNN/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def train():
params, aux = net.init(rng, muinputs, mel)
optimizer = make_optim(FLAGS._training_schedule[0].learning_rate)
optim_state = optimizer.init(params)
training_step = 0
training_step = -1

@jax.jit
def update(params, aux, optim_state, batch, learning_rate):
Expand Down
2 changes: 1 addition & 1 deletion vietTTS/waveRNN/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def loop(mel, prev_state):
return (out, reg, pr)


regenerate_from_signal = jax.jit(regenerate_from_signal_.apply)
regenerate_from_signal = jax.jit(regenerate_from_signal_.apply, static_argnums=[4])


def gen_test_sample(params, aux, rng, test_clip, step=0, sr=16000):
Expand Down

0 comments on commit 1fcfb3b

Please sign in to comment.