spleeter icon indicating copy to clipboard operation
spleeter copied to clipboard

File sepration time

Open Sameerhesta opened this issue 3 years ago • 1 comments

To bring more precision: actually 25s for a single audio file may be right as there is quite a big overhead for building the model (~20s). Once the model is built, separation should be about 100x real time (i.e. ~3s for a 5min audio file). So if you need to separate a lot of files, you can build the model only once using a single command for batch processing or instantiating a single Separator in the python API and calling several times the separate methods.

Is this 3 seconds is the complete time for separation? means time from when I hit the command to when it shows completed and generates the separated files.

What I try to understand is the time you have mentioned 3 seconds is for the complete process or only for the separation.

Command:- spleeter separate --verbose Wav_45mb.wav recording10.wav -p spleeter:4stems -o output5

Sameerhesta avatar Dec 29 '21 08:12 Sameerhesta

Hi @Sameerhesta, 3s (which is just an order of magnitude) is the actual processing time for separation only without model loading overhead. If you want to measure the separation time accurately, use a Separator object and time the separate or separate_to_file (which will include audio file loading/writing as well), as described here.

romi1502 avatar Jan 06 '22 18:01 romi1502