Update inference_demucs.py

This commit is contained in:
Anjok07 2022-06-27 14:50:36 -05:00 committed by GitHub
parent fbbeacdd59
commit 7cce5e303a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,8 +71,6 @@ class Predictor():
mix, samplerate = librosa.load(m, mono=False, sr=44100)
if mix.ndim == 1:
mix = np.asfortranarray([mix,mix])
samplerate = self.demucs.samplerate
mix = mix.T
sources = self.demix(mix.T)