
Please register for RunPod at: https://get.runpod.io/955rkuppqv4h

Example tutorial for learn how to install and use RunPod is below

(starts at 22:03) : https://youtu.be/KW-MHmoNcqo?si=QN8X8Sjn13ZYu-EU&t=1323

RunPod permanent network storage tutorial : https://youtu.be/8Qf4x3-DFf4

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

Now supports RTX 5000 series too like 5090

Choose a RunPod template Very important:

RunPod Pytorch 2.8.0
runpod/pytorch:2.8.0-py3.11-cuda12.8.1-cudnn-devel-ubuntu22.04

Edit the pod configuration:
Set the volume disk size to 50 GB or your preferred size.
Set Container Disk minimum 30 GB - not leave as 20 GB

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 FaceFusion app:

cd /workspace
export HF_HOME="/workspace"
export PYTHONWARNINGS="ignore"
export CUDA_VISIBLE_DEVICES=0
cd /workspace/facefusion
source venv/bin/activate
export HF_HUB_ENABLE_HF_TRANSFER=1
python facefusion.py run --execution-providers cuda

RunPod Proxy port not working therefore we overwrite file automatically and start with a Gradio live share

Use the Gradio live share link provided after started

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 before running above starting command

apt update --yes
apt install ffmpeg --yes





.
.
.
.
.
.
.
.

Old code not used anymore not needed anymore

.
.
.
.
.
.
.
.
.
.

Old code not used anymore not needed anymore
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export CUDNN_PATH=/usr/local/cuda
export PATH=/usr/local/cuda-12.4/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH
export VIRTUAL_ENV=/workspace/facefusion/venv
export PATH=$VIRTUAL_ENV/bin:$PATH
export LD_LIBRARY_PATH=/workspace/facefusion/venv/lib/python3.10/site-packages/tensorrt/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/workspace/facefusion/venv/lib/python3.10/site-packages/tensorrt_libs/:$LD_LIBRARY_PATH