Skip to content

Commit add42bc

Browse files
committed
fix #2
1 parent 322d17a commit add42bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_time_stretch/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def time_stretch(
109109
# resampler = T.Resample(sample_rate, int(sample_rate / stretch)).to(input.device)
110110
output = input
111111
output = output.reshape(batch_size * channels, samples)
112-
output = torch.stft(output, n_fft, hop_length)[None, ...]
112+
output = torch.stft(output, n_fft, hop_length, return_complex=True)[None, ...]
113113
stretcher = T.TimeStretch(
114114
fixed_rate=float(1 / stretch), n_freq=output.shape[2], hop_length=hop_length
115115
).to(input.device)

0 commit comments

Comments
 (0)