You're looking at a specific version of this model. Jump to the model overview.

ryan5453 /demucs:bfc15c4c

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
audio
string
Upload the file to be processed here.
model
string (enum)
htdemucs

Options:

htdemucs, htdemucs_ft, htdemucs_6s, hdemucs_mmi, mdx, mdx_q, mdx_extra, mdx_extra_q

Choose the demucs audio that proccesses your audio. The readme has more information on what to choose.
stem
string (enum)
none

Options:

none, drums, bass, other, vocals, guitar, piano

If you just want to isolate one stem, you can choose it here.
output_format
string (enum)
mp3

Options:

mp3, aac, flac, wav

Choose the audio format you would like the result to be returned in.
mp3_bitrate
integer
320
Choose the bitrate for the MP3 output. Higher is better quality but larger file size. If MP3 is not selected as the output type, this has no effect.
mp3_preset
integer (enum)
2

Options:

2, 3, 4, 5, 6, 7

Choose the preset for the MP3 output. Higher is faster but worse wuality. If MP3 is not selected as the output type, this has no effect.
wav_format
string (enum)
int24

Options:

int16, int24, float32

Choose format for the WAV output. If WAV is not selected as the output type, this has no effect.
clip_mode
string (enum)
rescale

Options:

rescale, clamp, none

Choose the strategy for avoiding clipping. Rescale will rescale entire signal if necessary or clamp will allow hard clipping.
shifts
integer
1
Choose the amount random shifts for equivariant stabilization. This performs multiple predictions with random shifts of the input and averages them, which makes it x times slower.
overlap
number
0.25
Choose the amount of overlap between prediction windows.
split
boolean
True
Choose whether or not the audio should be split into chunks.
segment
integer
Choose the segment length to use for separation.
jobs
integer
0
Choose the number of parallel jobs to use for separation.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'properties': {'stems': {'items': {'properties': {'audio': {'format': 'uri',
                                                             'title': 'Audio',
                                                             'type': 'string'},
                                                   'name': {'title': 'Name',
                                                            'type': 'string'}},
                                    'required': ['name', 'audio'],
                                    'title': 'DemucsStem',
                                    'type': 'object'},
                          'title': 'Stems',
                          'type': 'array'}},
 'required': ['stems'],
 'title': 'DemucsResponse',
 'type': 'object'}