Closed will2dye4 closed 12 months ago
It looks like the latest version does provide a command line flag (--list-models
) to do this, but it hasn't been released yet: https://github.com/facebookresearch/demucs/blob/main/demucs/separate.py#L26.
Fixed in v1.2.0.
The demucs readme has a hard-coded list of supported models.
It may also be possible to fetch the list of models programmatically using something like:
Of course, using non-public functions and attributes may cause such an approach to break without warning. It doesn't look like demucs provides a public API for getting the model list. Maybe hard-coding is the way to go after all?
This should be configurable via CLI flag (
--model <name>
) and also via the Import Settings in the Song Importer.