mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
Use tf.abs in compute_spectrogram_tf
To avoid the following error: `Cannot convert a symbolic Tensor (transpose_1:0) to a numpy array`
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