Skip to content

Commit

Permalink
Make linter
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Jul 12, 2022
1 parent d1ca4c1 commit adae1c0
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions TTS/tts/utils/ssim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def _reduce(x: torch.Tensor, reduction: str = "mean") -> torch.Tensor:
"""
if reduction == "none":
return x
elif reduction == "mean":
if reduction == "mean":
return x.mean(dim=0)
elif reduction == "sum":
if reduction == "sum":
return x.sum(dim=0)
raise ValueError("Unknown reduction. Expected one of {'none', 'mean', 'sum'}")

Expand Down
1 change: 0 additions & 1 deletion recipes/ljspeech/fast_pitch/train_fast_pitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
print_step=50,
print_eval=False,
mixed_precision=False,
sort_by_audio_len=True,
max_seq_len=500000,
output_path=output_path,
datasets=[dataset_config],
Expand Down
1 change: 0 additions & 1 deletion recipes/ljspeech/fast_speech/train_fast_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
print_step=50,
print_eval=False,
mixed_precision=False,
sort_by_audio_len=True,
max_seq_len=500000,
output_path=output_path,
datasets=[dataset_config],
Expand Down
1 change: 0 additions & 1 deletion recipes/ljspeech/speedy_speech/train_speedy_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
print_step=50,
print_eval=False,
mixed_precision=False,
sort_by_audio_len=True,
max_seq_len=500000,
output_path=output_path,
datasets=[dataset_config],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
print_step=25,
print_eval=True,
mixed_precision=False,
sort_by_audio_len=True,
seq_len_norm=True,
output_path=output_path,
datasets=[dataset_config],
Expand Down
1 change: 0 additions & 1 deletion recipes/multilingual/vits_tts/train_vits_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
use_language_weighted_sampler=True,
print_eval=False,
mixed_precision=False,
sort_by_audio_len=True,
min_audio_len=32 * 256 * 4,
max_audio_len=160000,
output_path=output_path,
Expand Down
1 change: 0 additions & 1 deletion recipes/thorsten_DE/speedy_speech/train_speedy_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"Dieser Kuchen ist großartig. Er ist so lecker und feucht.",
"Vor dem 22. November 1963.",
],
sort_by_audio_len=True,
max_seq_len=500000,
output_path=output_path,
datasets=[dataset_config],
Expand Down

0 comments on commit adae1c0

Please sign in to comment.