Spaces:
Runtime error
Runtime error
File size: 887 Bytes
cd98081 | 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 37 38 39 40 | #!/bin/bash
# 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 |