diff-svc icon indicating copy to clipboard operation
diff-svc copied to clipboard

Set return_complex param in stft function to false

Open tomasbarak opened this issue 2 years ago • 1 comments

I was getting this: 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.. The error is related to the "stft" function from PyTorch, which is used in the "diff-svc" codebase for computing short-time Fourier transform (STFT) and mel-spectrogram features. The error message indicates that the "return_complex" parameter needs to be specified explicitly, as it will be required in a future release of PyTorch for real inputs.

tomasbarak avatar Apr 19 '23 04:04 tomasbarak

This pull request solves the issue #74

tomasbarak avatar Apr 19 '23 04:04 tomasbarak