Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust default to be able to process longer sentences #1835

Merged
merged 1 commit into from
Aug 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adjust default to be able to process longer sentences
Running `tts --text "$text" --out_path …` with a somewhat longer
sentences in the text will lead to warnings like “Decoder stopped with
max_decoder_steps 500” and the sentences just being cut off in the
resulting WAV file.

This happens quite frequently when feeding longer texts (e.g. a blog
post) to `tts`. It's particular frustrating since the error is not
always obvious in the output. You have to notice that there are missing
parts. This is something other users seem to have run into as well [1].

This patch simply increases the maximum number of steps allowed for the
tacotron decoder to fix this issue, resulting in a smoother default
behavior.

[1] mozilla/TTS#734
  • Loading branch information
lkiesow committed Aug 6, 2022
commit 2a3d248e9bc40fdaf884a82f3d32bc169afa9e8f
2 changes: 1 addition & 1 deletion TTS/tts/configs/tacotron_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class TacotronConfig(BaseTTSConfig):
stopnet: bool = True
separate_stopnet: bool = True
stopnet_pos_weight: float = 0.2
max_decoder_steps: int = 500
max_decoder_steps: int = 10000
encoder_in_features: int = 256
decoder_in_features: int = 256
decoder_output_dim: int = 80
Expand Down