Spaces:
Configuration error
Configuration error
File size: 1,108 Bytes
519d358 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
all: linter tests
linter:
flake8 demucs
mypy demucs
tests: test_train test_eval
test_train: tests/musdb
_DORA_TEST_PATH=/tmp/demucs python3 -m dora run --clear \
dset.musdb=./tests/musdb dset.segment=4 dset.shift=2 epochs=2 model=demucs \
demucs.depth=2 demucs.channels=4 test.sdr=false misc.num_workers=0 test.workers=0 \
test.shifts=0
test_eval:
python3 -m demucs -n demucs_unittest test.mp3
python3 -m demucs -n demucs_unittest --two-stems=vocals test.mp3
python3 -m demucs -n demucs_unittest --mp3 test.mp3
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
python3 -c 'import musdb; musdb.DB("tests/tmp", download=True)'
musdbconvert tests/tmp tests/musdb
dist:
python3 setup.py sdist
clean:
rm -r dist build *.egg-info
.PHONY: linter dist test_train test_eval
|