Skip to content

Commit

Permalink
Merge branch 'Experiments'
Browse files Browse the repository at this point in the history
  • Loading branch information
pawansharmaaaa committed Feb 27, 2024
2 parents 74c7b47 + 6b6d082 commit 3192099
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions setup-colab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ then
sudo apt-get install ffmpeg
fi

# 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

# Install requirements
pip install -r requirements.txt
pip install --upgrade --no-cache-dir gdown

# Find python version
python_version=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")

# Copy archs
cp archs/* /usr/local/lib/python3.10/dist-packages/basicsr/archs
cp archs/* /usr/local/lib/python${python_version}/dist-packages/basicsr/archs

# Run file_check.py
python ./helpers/file_check.py

0 comments on commit 3192099

Please sign in to comment.