Spaces:
Runtime error
Runtime error
Download setup.sh from Stable-Human/Lip_Wise: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/spaces/Stable-Human/Lip_Wise/resolve/main/setup.sh
- Command line
-
hf download hf://spaces/Stable-Human/Lip_Wise/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/Stable-Human/Lip_Wise/resolve/main/setup.sh
887 Bytes
| # Install FFMPEG | |
| os=$(uname -a) | |
| # Check if ffmpeg is installed | |
| if ! command -v ffmpeg &> /dev/null | |
| then | |
| if [[ $os == *"arch"* ]]; then | |
| # If the OS is Arch Linux, use pacman | |
| sudo pacman -S ffmpeg | |
| elif [[ $os == *"Ubuntu"* ]] || [[ $os == *"Debian"* ]]; then | |
| # If the OS is Ubuntu or Debian, use apt-get | |
| sudo apt-get install ffmpeg | |
| fi | |
| fi | |
| sudo apt install python3.10-venv | |
| # Check if CUDA is installed | |
| if [ -z "$CUDA_PATH" ] | |
| then | |
| echo "CUDA is not installed. Please install CUDA." | |
| echo "CPU will be used for inference." | |
| fi | |
| # Create a virtual environment | |
| python3 -m venv .lip-wise | |
| # Activate the virtual environment | |
| source .lip-wise/bin/activate | |
| # Install requirements | |
| pip install -r requirements.txt | |
| # Copy archs | |
| cp archs/* .lip-wise/lib/python3.10/site-packages/basicsr/archs/ | |
| # Run file_check.py | |
| python file_check.py |