coqui-tts/TTS/tts/models
Khalid Bashir 14c80dd1fd
vits.py training fixed due to return_complex (#2418)
Torch set default value for `return_complex=True` for `torch.stft` method
This turned warning into error:-
```
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/trainer/trainer.py", line 1591, in fit
    self._fit()
  File "/usr/local/lib/python3.10/dist-packages/trainer/trainer.py", line 1544, in _fit
    self.train_epoch()
  File "/usr/local/lib/python3.10/dist-packages/trainer/trainer.py", line 1309, in train_epoch
    _, _ = self.train_step(batch, batch_num_steps, cur_step, loader_start_time)
  File "/usr/local/lib/python3.10/dist-packages/trainer/trainer.py", line 1162, in train_step
    outputs, loss_dict_new, step_time = self._optimize(
  File "/usr/local/lib/python3.10/dist-packages/trainer/trainer.py", line 1023, in _optimize
    outputs, loss_dict = self._model_train_step(batch, model, criterion, optimizer_idx=optimizer_idx)
  File "/usr/local/lib/python3.10/dist-packages/trainer/trainer.py", line 970, in _model_train_step
    return model.train_step(*input_args)
  File "/workspace/coqui-tts/TTS/tts/models/vits.py", line 1293, in train_step
    mel_slice_hat = wav_to_mel(
  File "/workspace/coqui-tts/TTS/tts/models/vits.py", line 191, in wav_to_mel
    spec = torch.stft(
  File "/usr/local/lib/python3.10/dist-packages/torch/functional.py", line 641, in stft
    return _VF.stft(input, n_fft, hop_length, win_length, window,  # type: ignore[attr-defined]
RuntimeError: stft requires the return_complex parameter be given for real inputs, and will further require that return_complex=True in a future PyTorch release.
```
2023-03-19 00:22:04 +01:00
..
__init__.py Update setup_model 2022-02-25 11:11:35 +01:00
align_tts.py Bump up to v0.11.0 (#2329) 2023-02-08 13:58:49 +01:00
base_tacotron.py Bump up to v0.11.0 (#2329) 2023-02-08 13:58:49 +01:00
base_tts.py add energy by default to Fastspeech2 config (#2326) 2023-03-06 10:20:25 +01:00
forward_tts.py Fastspeech2 (#2073) 2023-01-15 22:39:22 +01:00
glow_tts.py Bump up to v0.11.0 (#2329) 2023-02-08 13:58:49 +01:00
neuralhmm_tts.py Bug fixes in OverFlow audio generation (#2380) 2023-03-15 12:02:11 +01:00
overflow.py Bug fixes in OverFlow audio generation (#2380) 2023-03-15 12:02:11 +01:00
tacotron.py Bump up to v0.11.0 (#2329) 2023-02-08 13:58:49 +01:00
tacotron2.py Bump up to v0.11.0 (#2329) 2023-02-08 13:58:49 +01:00
vits.py vits.py training fixed due to return_complex (#2418) 2023-03-19 00:22:04 +01:00