Open Litchi1999 opened 1 year ago
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)
istft requires a complex-valued input tensor matching the output from stft with return_complex=True.