
Please register for RunPod at: https://runpod.io?ref=1aka98lq

Select a GPU with a minimum of 24 GB VRAM, such as the RTX 3090.

Choose a RunPod template (this is mandatory):

RunPod Pytorch 2.2.0
runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04

Edit the pod configuration:
Set the volume disk size to 50 GB or your preferred size.

Add HTTP port 7861 to the exposed ports list to enable proxy connection.
By default, it will start with the --share option for Gradio sharing.

Upload all files to the workspace folder.

To install, run the following commands:


export HF_HOME="/workspace"
chmod +x Runpod_Install.sh
./Runpod_Install.sh


To use after installation:

Open a new terminal and run the following code each time you start:

Run the following commands for Human Live Portrait APP:

cd /workspace
export HF_HOME="/workspace"
export PYTHONWARNINGS="ignore"
export CUDA_VISIBLE_DEVICES=0
cd /workspace/LivePortrait
source venv/bin/activate
python app.py --share

Run the following commands for Animal Live Portrait APP:

cd /workspace
export HF_HOME="/workspace"
export PYTHONWARNINGS="ignore"
export CUDA_VISIBLE_DEVICES=0
cd /workspace/LivePortrait
source venv/bin/activate
python app_animals.py --share

You will receive a Gradio live link, and you'll be able to connect via the proxy on port 7861.

Pay attention to the Gradio share link among the printed messages.

Remove the --share option if you don't want the Gradio live link

If you rent multiple GPU machine, you can start different instances on each GPU by changing export CUDA_VISIBLE_DEVICES=1 2 3 4 etc

If you restart the pod you have to run below command 1 time after each restart

apt update --yes
apt install ffmpeg --yes
