Update inference_demucs.py
This commit is contained in:
@@ -71,8 +71,6 @@ class Predictor():
|
|||||||
mix, samplerate = librosa.load(m, mono=False, sr=44100)
|
mix, samplerate = librosa.load(m, mono=False, sr=44100)
|
||||||
if mix.ndim == 1:
|
if mix.ndim == 1:
|
||||||
mix = np.asfortranarray([mix,mix])
|
mix = np.asfortranarray([mix,mix])
|
||||||
|
|
||||||
samplerate = self.demucs.samplerate
|
|
||||||
|
|
||||||
mix = mix.T
|
mix = mix.T
|
||||||
sources = self.demix(mix.T)
|
sources = self.demix(mix.T)
|
||||||
|
|||||||
Reference in New Issue
Block a user