-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Bug] RuntimeError: stft requires the return_complex parameter be given for real inputs #2449
Comments
try dev branch. should be fixed there. |
one bad variant to fix by hardcode in local env: nano /opt/conda/lib/python3.10/site-packages/torch/functional.py: at line 641: insert this before return statement:
|
Hi, I have come across this same problem when trying to run the NVidiaQuartzNetMic.ipynb, tried fixing it by inserting this statement in my /usr/local/lib/python3.9/dist-packages/torch/functional.py at line 641, but it still gives the same error. Could you please help me. /usr/local/lib/python3.9/dist-packages/torch/functional.py in stft(input, n_fft, hop_length, win_length, window, center, pad_mode, normalized, onesided, return_complex) 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. |
I have same issue in VITS model. But it comes as warning not a bug. But it leads to losses becoming Nan later and training interrupts. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels. |
I have the same problem, can anyone help me fix this problem? |
as I tried some time ago, in the last version of coqui, this problem is already solved. But if you still have it, and use old version of coqui tts, try my method with changes in sources of torch library. |
it works for me. Thanks! |
This has also been fixed in our fork, available via |
**Traceback (most recent call last): |
Describe the bug
When trying to fine-tune YourTTS with an LJSpeech formatted dataset after computing the encodings, this error appears.
To Reproduce
Run the your_tts recipe:
https://gist.github.com/thoraxe/d75d47990b5a07b2201ddeaebdb71362
Expected behavior
Training should occur.
Logs
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: