From d9b1f5317c36fafbbd6777c449a67e179a70e1cd Mon Sep 17 00:00:00 2001 From: Anjok07 <68268275+Anjok07@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:33:17 -0600 Subject: [PATCH] Update separate.py --- separate.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/separate.py b/separate.py index ea435af..fb39f4e 100644 --- a/separate.py +++ b/separate.py @@ -870,17 +870,14 @@ def prepare_mix(mix, chunk_set, margin_set, mdx_net_cut=False, is_missing_mix=Fa audio_path = mix samplerate = 44100 - print('mix first: ', mix) + if not isinstance(mix, np.ndarray): mix, samplerate = librosa.load(mix, mono=False, sr=44100) else: mix = mix.T - print('mix: ', mix) - if not np.any(mix) and audio_path.endswith('.mp3'): mix = rerun_mp3(audio_path) - print('mix after fix: ', mix) if mix.ndim == 1: mix = np.asfortranarray([mix,mix])