-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunpod_install.sh
36 lines (30 loc) · 1.03 KB
/
runpod_install.sh
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
#!/bin/bash
echo "---------------------"
echo "Setup Style-Bert-VITS2 API Lite"
echo "---------------------"
echo "[1/3] Make runtime environment"
cd /workspace/sbv2-api-lite
python -m venv --system-site-packages .venv
source .venv/bin/activate
echo "[2/3] Install python dependencies"
pip install -r requirements.txt
echo "[3/3] Install FFmpeg"
curl -s -L -o ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
mkdir ffmpeg-static
tar -xJf ffmpeg.tar.xz --strip-components=1 -C ffmpeg-static
rm ffmpeg.tar.xz
echo "Setup complete! To launch the API server, please follow these steps:"
echo ""
echo "1. Set the following command as the Container Start Command:"
echo "---------------------"
echo "bash /workspace/sbv2-api-lite/runpod_start.sh"
echo "---------------------"
echo ""
echo "2. Set the following environment variables:"
echo "---------------------"
echo "SBV2_API_LITE_USE_GPU=true"
echo "SBV2_API_LITE_VERBOSE=true"
echo "---------------------"
echo ""
echo "3. Restart the pod."
tail -f /dev/null