Skip to content

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

@lucyanddarlin

Description

@lucyanddarlin

I ran /asteroid-master/egs/musdb18/X-UMX/run.sh, but got the error: RuntimeError: istft requires a complex-valued input tensor matching the output from stft with return_complex=True.

I try to set the return_complex=True in x_umx.py :

 stft_f = torch.stft(
            x,
            n_fft=self.n_fft,
            hop_length=self.n_hop,
            window=self.window,
            center=self.center,
            normalized=False,
            onesided=True,
            pad_mode="reflect",
            return_complex=True,
        )

but it didn't work...could someone tell me how to solve it? Thank u so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions