CMGAN icon indicating copy to clipboard operation
CMGAN copied to clipboard

RuntimeeError

Open Litchi1999 opened this issue 1 year ago • 1 comments

istft requires a complex-valued input tensor matching the output from stft with return_complex=True.

Litchi1999 avatar Sep 08 '23 07:09 Litchi1999

I set return_complex=False and added the following lines after the power_uncompress and before the iSTFT call:

        est_spec_uncompress = est_spec_uncompress.permute(0, 3, 1, 2)
        est_spec_real = est_spec_uncompress[:, 0, :, :]
        est_spec_imag = est_spec_uncompress[:, 1, :, :]
        est_spec_uncompress = torch.complex(est_spec_real, est_spec_imag)

samly97 avatar Oct 27 '23 13:10 samly97