pip install requests
pip install tqdm
sudo apt update
sudo apt install software-properties-common --yes
sudo apt install git-lfs --yes
sudo apt install ffmpeg --yes
git lfs install
#!/bin/bash

# Clone the roop repository
git clone https://github.com/C0untFloyd/roop-unleashed

# Change directory to roop
cd roop-unleashed

# Create a Python virtual environment
python3 -m venv venv

# Activate the virtual environment
source venv/bin/activate

# Install onnxruntime-gpu and requirements
pip install -r requirements.txt

pip uninstall torchaudio torchvision torch --yes
pip install torch==2.5.1 xformers==0.0.28.post3 torchaudio torchvision --index-url https://download.pytorch.org/whl/cu124
pip install onnxruntime-gpu==1.20.1

cd ..
python3 Fix.py

git lfs install

cd ..

git clone --depth 1 https://huggingface.co/MonsterMMORPG/examples2 Example_Face_Video

cd Example_Face_Video

rm -rf .git

echo "All install completed. Please verify no errors."
# Pause in a bash script could be achieved with `read` if needed, but typically you just let the script end.
# read -p "Press enter to continue"