asteroid-team / asteroid-team/asteroid
RuntimeError: istft requires a complex-valued input tensor matching the output from stft with return_complex=True.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 450
- PR merge metrics
- No merged PRs in 30d
Description
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 :
```python
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!
Contributor guide
Research direction
Reproduce the failure with egs/musdb18/X-UMX/run.sh, then inspect the torch.stft and torch.istft calls in x_umx.py and how their tensor shapes and complex settings correspond. Done means the X-UMX run completes without the reported RuntimeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- audio-video-rtc, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100