#!/bin/bash

set -e

. ./venv/bin/activate

git clone -b main --single-branch https://github.com/facebookresearch/demucs /opt/demucs
cd /opt/demucs
git checkout e976d93ecc3865e5757426930257e200846a520a

python -m pip install -e . --no-cache-dir

LD_LIBRARY_PATH=/opt/venv/lib TORCH_HOME=/opt/demucs-models python -m demucs -d cpu -n htdemucs test.mp3
