Download scripts/setup_env.sh from sadmN/emotion-avatar-server: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/sadmN/emotion-avatar-server/resolve/main/scripts/setup_env.sh
- Command line
-
hf download hf://sadmN/emotion-avatar-server/scripts/setup_env.sh
-
curl -L -o setup_env.sh https://huggingface.co/sadmN/emotion-avatar-server/resolve/main/scripts/setup_env.sh
650 Bytes
| # Create the python environment and fetch the weights from this repo. | |
| set -e | |
| REPO="sadmN/emotion-avatar-server" | |
| ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| cd "$ROOT" | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| # weights (IMTalker generator + renderer + wav2vec2 + reference image) | |
| pip install "huggingface_hub[cli]" | |
| huggingface-cli download "$REPO" --local-dir weights_hf \ | |
| --include "imtalker/*" "weights/wav2vec2-base-960h/*" "weights/ref.jpeg" | |
| mkdir -p code | |
| unzip -oq emotion_avatar_code.zip -d code | |
| echo "done. weights in ./weights_hf, code in ./code/emo_code" | |