What's up, guys! Today we're going to install Deep Live Cam, a cool thing that lets you swap faces on your webcam or in a video. Yes, now you can put your face on a photo of Jason Statham and feel cool... well, no, you won't.
Step 1. Preparing for installation
Before you launch this mega-dragoon, you need to install a few things. If they're missing, everything will go to hell.1. Install Chocolatey (if you're on Windows)
Run PowerShell as administrator and type:
Code:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
2. Install Python 3.10, Git and FFmpeg:
Code:
choco install python --version=3.10.0 -y
choco install git -y
choco install ffmpeg -y
3. Check the installation:
Code:
python --version
git --version
ffmpeg -version
4. Install Visual Studio C++ Build Tools 2022 Download and install them from here: https://aka.ms/vs/17/release/vs_BuildTools.exe
If you have NVIDIA GPU, then install CUDA:
Code:
choco install cuda -y
And check with the command:
nvidia-smi
Step 2. Download Deep Live Cam
Now clone the project:
Code:
git clone https://github.com/hacksider/Deep-Live-Cam.git
Install all dependencies:
Code:
pip install -r requirements.txt
Code:
pip install onnxruntime-gpu
Step 3. Download models
Go to Hugging Face and download the files:Step 4. Check and go to verification
The program opens, select a face and either upload a video or turn on the webcam. Click "Start" and get a decent fake.Here's what you can do:
Change your face in real time
Insert yourself in any video
Make memes with cats (no, animals are not allowed yet)
Possible errors and solutions
That's it, now you're officially a master of face swapping!