mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
Merge pull request #362 from Martin1994/np-tf-fix
Use tf.abs in compute_spectrogram_tf
This commit is contained in:
@@ -44,7 +44,7 @@ def compute_spectrogram_tf(
|
|||||||
periodic=True,
|
periodic=True,
|
||||||
dtype=waveform.dtype) ** window_exponent),
|
dtype=waveform.dtype) ** window_exponent),
|
||||||
perm=[1, 2, 0])
|
perm=[1, 2, 0])
|
||||||
return np.abs(stft_tensor) ** spec_exponent
|
return tf.abs(stft_tensor) ** spec_exponent
|
||||||
|
|
||||||
|
|
||||||
def time_stretch(
|
def time_stretch(
|
||||||
|
|||||||
Reference in New Issue
Block a user