Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed Sep 5, 2022
1 parent 322d17a commit add42bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_time_stretch/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def time_stretch(
# resampler = T.Resample(sample_rate, int(sample_rate / stretch)).to(input.device)
output = input
output = output.reshape(batch_size * channels, samples)
output = torch.stft(output, n_fft, hop_length)[None, ...]
output = torch.stft(output, n_fft, hop_length, return_complex=True)[None, ...]
stretcher = T.TimeStretch(
fixed_rate=float(1 / stretch), n_freq=output.shape[2], hop_length=hop_length
).to(input.device)
Expand Down

0 comments on commit add42bc

Please sign in to comment.