Skip to content

Commit

Permalink
APIs - 4.1.0a1 (#499)
Browse files Browse the repository at this point in the history
* Allow manually run workflow

* Add HTDemucs to AnyModel

* Set minimum Python version to 3.8

* Add type hints for save_audio

* Update segment machenism

* Update help message that htdemucs is the default

* Add segment test

* Fix linter

* API

* Update separate.py to use api

* Version 4.1.0a1

* Update api.md

* Make parameter `repo` clearer

* Add doc for loading existing audio in quick start

* Fix typo in docs

* Add flac output

* Fix linter

* Fix conflicts

* Fix wrong indent

* import htdemucs

* import htdemucs

* rename variable

* Fix variable name

* Fix mypy linting

* Fix mypy linting again

* flac output & max_allowed_segment only for HTDemucs

* Fix codes forgot to change

* Update release.md

* Use in-place operation to save memory

* fix linter

* Make API simpler

* Optimise code and fix separate api returns different wave

* Fixes according to review
Use _NotProvided to allow passing `None`

Add returing "break" to stop separation

Make callback thread-safe

* Allow changing remote_root when listing models

* revert changes

* return file path for list_models

* fix Typing

* Minor fixes with linter

Directly calls audio.save_audio

Changing parameter `sr` (samplerate) to optional argument

Fixes linter

* Fix lock; use `KeyboardInterrupt` to abort

* Fix Linter

* Update doc

* List model argument
  • Loading branch information
CarlGao4 authored Sep 22, 2023
1 parent 404690c commit 0fa7d45
Show file tree
Hide file tree
Showing 13 changed files with 817 additions and 108 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Session.vim
/trash
/misc
/mdx
.mypy_cache
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ test_eval:
python3 -m demucs -n demucs_unittest --flac --int24 test.mp3
python3 -m demucs -n demucs_unittest --int24 --clip-mode clamp test.mp3
python3 -m demucs -n demucs_unittest --segment 8 test.mp3
python3 -m demucs.api -n demucs_unittest --segment 8 test.mp3
python3 -m demucs --list-models

tests/musdb:
test -e tests || mkdir tests
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ import shlex
demucs.separate.main(shlex.split('--mp3 --two-stems vocals -n mdx_extra "track with space.mp3"'))
```

To use more complicated APIs, see [API docs](docs/api.md)

## Training Demucs

If you want to train (Hybrid) Demucs, please follow the [training doc](docs/training.md).
Expand Down
2 changes: 1 addition & 1 deletion demucs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

__version__ = "4.0.1a3"
__version__ = "4.1.0a1"
Loading

0 comments on commit 0fa7d45

Please sign in to comment.