Open MrBanhBao opened 1 year ago
Same problem here, using separate_to_file()
:
Any known solution?
A first work around is to change the STFTBackend used by the separator:
from spleeter.audio import STFTBackend
backend = STFTBackend.LIBROSA
separator = Separator('spleeter:2stems', stft_backend=backend)
I believe there is an issue with the way data generator is updated when using the STFTBackend.TENSORFLOW (automatically chosen depending on whatever may be your environment settings, for me it was LIBROSA).
I will look further into this and come back with a solution as soon as I can.
Description
Spleeter returns the prediction of the previous waveform when running separate method with the same separator object more than once.
e.g: file1 --separate--> prediction of file1 file2 --separate--> prediction of file1 file3 --separate--> prediction of file2
I am using spleeter version 2.3.2, installed with pip in a conda environment with python 3.8.15.
Step to reproduce
I wrote a small script which should illustrate and reproduce the bug:
Environment
Additional context