Download export/setup.sh from ccds/vits_onnx: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/ccds/vits_onnx/resolve/main/export/setup.sh
- Command line
-
hf download hf://spaces/ccds/vits_onnx/export/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/ccds/vits_onnx/resolve/main/export/setup.sh
425 Bytes
| # update pip | |
| function setup_py(){ | |
| conda create -n dl python=3.9 -y | |
| conda init bash | |
| bash | |
| } | |
| conda activate dl | |
| export DEBIAN_FRONTEND=noninteractive && \ | |
| sudo apt-get update && \ | |
| sudo apt-get install cmake build-essential -y --no-install-recommends | |
| pip install --upgrade pip | |
| pip3 install torch --extra-index-url https://download.pytorch.org/whl/cpu | |
| pip3 install onnxruntime Cython | |
| pip install -r requirements.txt | |