hacksider/Deep-Live-Cam
Deep-Live-Cam 2.1
Real-time face swap and video deepfake with a single click and only a single image.
Disclaimer
This deepfake software is designed to be a productive tool for the AI-generated media industry. It can assist artists in animating custom characters, creating engaging content, and even using models for clothing design.
We are aware of the potential for unethical applications and are committed to preventative measures. A built-in check prevents the program from processing inappropriate media (nudity, graphic content, sensitive material like war footage, etc.). We will continue to develop this project responsibly, adhering to the law and ethics. We may shut down the project or add watermarks if legally required.
-
Ethical Use: Users are expected to use this software responsibly and legally. If using a real person’s face, obtain their consent and clearly label any output as a deepfake when sharing online.
-
Content Restrictions: The software includes built-in checks to prevent processing inappropriate media, such as nudity, graphic content, or sensitive material.
-
Legal Compliance: We adhere to all relevant laws and ethical guidelines. If legally required, we may shut down the project or add watermarks to the output.
-
User Responsibility: We are not responsible for end-user actions. Users must ensure their use of the software aligns with ethical standards and legal requirements.
By using this software, you agree to these terms and commit to using it in a manner that respects the rights and dignity of others.
Users are expected to use this software responsibly and legally. If using a real person’s face, obtain their consent and clearly label any output as a deepfake when sharing online. We are not responsible for end-user actions.
Exclusive v2.7 beta Quick Start - Pre-built (Windows/Mac Silicon/CPU)
This is the fastest build you can get if you have a discrete NVIDIA or AMD GPU, CPU or Mac Silicon, And you’ll receive special priority support. 2.7 beta is the best you can have with 30+ extra features than the open source version.
These Pre-builts are perfect for non-technical users or those who don’t have time to, or can’t manually install all the requirements. Just a heads-up: this is an open-source project, so you can also install it manually.
TLDR; Live Deepfake in just 3 Clicks
- Select a face
- Select which camera to use
- Press live!
Features & Uses - Everything is in real-time
Mouth Mask
Retain your original mouth for accurate movement using Mouth Mask
Face Mapping
Use different faces on multiple subjects simultaneously
Your Movie, Your Face
Watch movies with any face in real-time
Live Show
Run Live shows and performances
Memes
Create Your Most Viral Meme Yet
Created using Many Faces feature in Deep-Live-Cam
Omegle
Surprise people on Omegle
Installation (Manual)
Please be aware that the installation requires technical skills and is not for beginners. Consider downloading the quickstart version.
Click to see the process
Installation
This is more likely to work on your computer but will be slower as it utilizes the CPU.
1. Set up Your Platform
- Python (3.11 recommended)
- pip
- git
- ffmpeg -
iex (irm ffmpeg.tc.ht) - Visual Studio 2022 Runtimes (Windows)
2. Clone the Repository
|
|
3. Download the Models
Place these files in the “models” folder.
4. Install Dependencies
We highly recommend using a venv to avoid issues.
For Windows:
|
|
For Linux:
|
|
For macOS:
Apple Silicon (M1/M2/M3) requires specific setup:
|
|
** In case something goes wrong and you need to reinstall the virtual environment **
|
|
Run: If you don’t have a GPU, you can run Deep-Live-Cam using python run.py. Note that initial execution will download models (~300MB).
GPU Acceleration
CUDA Execution Provider (Nvidia)
- Install CUDA Toolkit 12.8.0
- Install cuDNN v8.9.7 for CUDA 12.x (required for onnxruntime-gpu):
- Download cuDNN v8.9.7 for CUDA 12.x
- Make sure the cuDNN bin directory is in your system PATH
- Install dependencies:
|
|
- Usage:
|
|
CoreML Execution Provider (Apple Silicon)
Apple Silicon (M1/M2/M3) specific installation:
- Make sure you’ve completed the macOS setup above using Python 3.10.
- Install dependencies:
|
|
- Usage (important: specify Python 3.10):
|
|
Important Notes for macOS:
- You must use Python 3.10, not newer versions like 3.11 or 3.13
- Always run with
python3.10command not justpythonif you have multiple Python versions installed - If you get error about
_tkintermissing, reinstall the tkinter package:brew reinstall python-tk@3.10 - If you get model loading errors, check that your models are in the correct folder
- If you encounter conflicts with other Python versions, consider uninstalling them:
1 2 3 4 5 6 7 8# List all installed Python versions brew list | grep python # Uninstall conflicting versions if needed brew uninstall --ignore-dependencies python@3.11 python@3.13 # Keep only Python 3.11 brew cleanup
CoreML Execution Provider (Apple Legacy)
- Install dependencies:
|
|
- Usage:
|
|
DirectML Execution Provider (Windows)
- Install dependencies:
|
|
- Usage:
|
|
OpenVINO™ Execution Provider (Intel)
- Install dependencies:
|
|
- Usage:
|
|
Usage
1. Image/Video Mode
- Execute
python run.py. - Choose a source face image and a target image/video.
- Click “Start”.
- The output will be saved in a directory named after the target video.
2. Webcam Mode
- Execute
python run.py. - Select a source face image.
- Click “Live”.
- Wait for the preview to appear (10-30 seconds).
- Use a screen capture tool like OBS to stream.
- To change the face, select a new source image.
Download all models in this huggingface link
Command Line Arguments (Unmaintained)
|
|
Looking for a CLI mode? Using the -s/–source argument will make the run program in cli mode.
Press
- Ars Technica - “Deep-Live-Cam goes viral, allowing anyone to become a digital doppelganger”
- Yahoo! - “OK, this viral AI live stream software is truly terrifying”
- CNN Brasil - “AI can clone faces on webcam; understand how it works”
- Bloomberg Technoz - “Get to know Deep Live Cam technology, it can be used as a tool for deception.”
- TrendMicro - “AI vs AI: DeepFakes and eKYC”
- PetaPixel - “Deepfake AI Tool Lets You Become Anyone in a Video Call With Single Photo”
- SomeOrdinaryGamers - “That’s Crazy, Oh God. That’s Fucking Freaky Dude… That’s So Wild Dude”
- IShowSpeed - “Alright look look look, now look chat, we can do any face we want to look like chat”
- TechLinked (Linus Tech Tips) - “They do a pretty good job matching poses, expression and even the lighting”
- IShowSpeed - “What the F**! Why do I look like Vinny Jr? I look exactly like Vinny Jr!? No, this shit is crazy! Bro This is F*** Crazy!”*
Credits
- ffmpeg: for making video-related operations easy
- Henry: One of the major contributor in this repo
- deepinsight: for their insightface project which provided a well-made library and models. Please be reminded that the use of the model is for non-commercial research purposes only.
- havok2-htwo: for sharing the code for webcam
- GosuDRM: for the open version of roop
- pereiraroland26: Multiple faces support
- vic4key: For supporting/contributing to this project
- kier007: for improving the user experience
- qitianai: for multi-lingual support
- laurigates: Decoupling stuffs to make everything faster!
- and all developers behind libraries used in this project.
- Footnote: Please be informed that the base author of the code is s0md3v
- All the wonderful users who helped make this project go viral by starring the repo ❤️
