Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #111 from iclementine/develop
Browse files Browse the repository at this point in the history
fix a config key error
  • Loading branch information
Feiyu Chan authored May 18, 2021
2 parents 4f288a6 + 3aa6aed commit 87a0cec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/transformer_tts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
d_ffn=1024, # encoder_d_ffn & decoder_d_ffn
encoder_layers=4, # number of transformer encoder layer
decoder_layers=4, # number of transformer decoder layer
d_prenet=256, # decprenet's hidden size (d_mel=>d_prenet=>d_decoder)
d_prenet=256, # decoder prenet's hidden size (n_mels=>d_prenet=>d_decoder)
d_postnet=256, # decoder postnet(cnn)'s internal channel
postnet_layers=5, # decoder postnet(cnn)'s layer
postnet_kernel_size=5, # decoder postnet(cnn)'s kernel size
Expand Down
2 changes: 1 addition & 1 deletion examples/transformer_tts/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create_dataset(config, source_path, target_path, verbose=False):
processor = AudioProcessor(
sample_rate=config.data.sample_rate,
n_fft=config.data.n_fft,
n_mels=config.data.d_mel,
n_mels=config.data.n_mels,
win_length=config.data.win_length,
hop_length=config.data.hop_length,
fmax=config.data.fmax,
Expand Down
2 changes: 1 addition & 1 deletion parakeet/models/transformer_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def from_pretrained(cls, frontend, config, checkpoint_path):
frontend,
d_encoder=config.model.d_encoder,
d_decoder=config.model.d_decoder,
d_mel=config.data.d_mel,
d_mel=config.data.n_mels,
n_heads=config.model.n_heads,
d_ffn=config.model.d_ffn,
encoder_layers=config.model.encoder_layers,
Expand Down

0 comments on commit 87a0cec

Please sign in to comment.