Auto Installer Script For Roop (DeepFake) On RunPod & Example Image And Videos (Patreon)
Videos
-
video2.mp4 -
video1.mp4 -
video3.mp4
Downloads
Content
Join discord and tell me your discord username to get a special rank : SECourses Discord
17 February 2024 Update
- The installer file updated for the latest version to work with GPU
22 August 2023 Update
Now supports Fast Stable Diffusion template and Roop updated to the latest version with new features. Please read this post carefully. Don't forget to execute very bottom commands after turn off and turn on pod.
Tutorial : How To Use Roop DeepFake On RunPod Step By Step Tutorial With Custom Made Auto Installer Script
Readme file of this tutorial click here
Select template
- RunPod Fast Stable Diffusion (runpod/stable-diffusion:fast-stable-diffusion)
or
- RunPod Stable Diffusion (runpod/stable-diffusion:web-automatic)
Make runtime container disk size at least 20 GB
With my way you will be able to use Stable Diffusion auto1111 and Roop at the same time so you can use codeformer to improve faces as I have shown in this video : Mind-Blowing Deepfake Tutorial: Turn Anyone into Your Favorite Movie Star! PC & Google Colab - roop
Upload the attached auto_install.sh into your workspace folder
Open a new terminal (cmd)
Execute below commands with order
- chmod +x auto_install.sh
- ./auto_install.sh
This will install everything fully automatically
You don't have to do above steps anymore once you done them
Then whenever you want to use Roop deepfake
Open a new terminal inside the main Roop folder in your workspace as shown in tutorial video
Execute below commands
- cd /workspace/roop
- source ./venv/bin/activate
Then modify your file names in the given below command and hit enter on the opened cmd window
First option will not enhance face
Second option will enhance face automatically
Quality 1 is best quality 100 is worst
- python run.py -s "face2.png" -t "video3.mp4" -o "face_changed_video.mp4" --keep-frames --keep-fps --temp-frame-quality 1 --output-video-quality 1 --execution-provider cuda
- python run.py -s "face2.png" -t "video3.mp4" -o "face_restored_video.mp4" --keep-frames --keep-fps --temp-frame-quality 1 --output-video-quality 1 --execution-provider cuda --frame-processor face_swapper face_enhancer
It will generate face_changed_video.mp4 or the file name you give in the main Roop folder. Also you will see frames folder in main Roop folder named as video3 or whatever the video name you have given
For uploading files you can use jupyterlab interface or runpodctl which would be much faster
For runpodctl watch this tutorial : Ultimate RunPod Tutorial For Stable Diffusion - Automatic1111 - Data Transfers, Extensions, CivitAI
You can also use
To get example images and videos into your runpod quickly
Then unzip them with
- 7z x example_roop_dataset.zip
After you have turned off the pod or restarted the pod execute below commands 1 time. Do this after each restart or turned off pod and started again
Copy all and paste and hit enter at once
- apt update
- yes | apt-get install -y python3.10-tk
- yes | apt-get install ffmpeg
- yes | apt-get install p7zip-full
- yes | apt install -y libcudnn8=8.7.0.84-1+cuda11.8 libcudnn8-dev=8.7.0.84-1+cuda11.8 --allow-change-held-packages