pip install requests
pip install tqdm
apt update
apt install software-properties-common --yes
apt install git-lfs --yes
apt update && apt install -y ffmpeg


git clone https://github.com/FurkanGozukara/CodeFormer CodeFormerSE

cd CodeFormerSE

git clone https://github.com/sczhou/CodeFormer

python -m venv venv

source ./venv/bin/activate

pip install tqdm

pip install -r requirements.txt

echo installing requirements 

cd CodeFormer

python basicsr/setup.py develop

pip install torch==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu118 --upgrade
pip install xformers==0.0.22.post7
pip install bitsandbytes==0.43.0 --upgrade

echo Virtual environment made and installed properly