Deep-Live-Cam README

The project's README from github.com/hacksider/Deep-Live-Cam. As one markdown file: README.md.

Deep-Live-Cam 2.1.6

Real-time face swap and video deepfake with a single click and only a single image.

hacksider%2FDeep-Live-Cam | Trendshift

Demo GIF

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.

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.

Pre-built Deep-Live-Cam 2.7.5 Ultimate!

Lite / Ultimate Download Banner

Windows     Mac Silicon     CPU

Windows • Mac Silicon • CPU • NVIDIA • AMD

Builds optimized for your hardware.

Download

Ultimate includes 30+ exclusive features, performance optimizations, and priority support We only have a single official website which is https://deeplivecam.net . Please be careful on where you download other versions of this application aside from that website and this github repo.

Perfect if you want the fastest setup with zero manual installation, pre-configured dependencies, and optimized builds for every supported platform.

TLDR; Live Deepfake in just 3 Clicks

easysteps

  1. Select a face
  2. Select which camera to use
  3. Press live!

Features & Uses - Everything is in real-time

Mouth Mask

Retain your original mouth for accurate movement using Mouth Mask

resizable-gif

Face Mapping

Use different faces on multiple subjects simultaneously

face_mapping_source

Your Movie, Your Face

Watch movies with any face in real-time

movie

Live Show

Run Live shows and performances

show

Memes

Create Your Most Viral Meme Yet

show
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

2. Clone the Repository

git clone --depth 1 https://github.com/hacksider/Deep-Live-Cam.git
cd Deep-Live-Cam

3. Download the Models

  1. gfpgan-1024.onnx
  2. inswapper_128_fp16.onnx

Place these files in the "models" folder.

4. Install Dependencies

We highly recommend using a venv to avoid issues.

For Windows:

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

For Linux:

# Ensure you use the installed Python 3.14
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

For macOS:

Apple Silicon (M1 through M5) requires specific setup:

# Install Python 3.14
brew install [email protected]

# Install tkinter package (required for the GUI)
brew install [email protected]

# Create and activate virtual environment with Python 3.14
python3.14 -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

** In case something goes wrong and you need to reinstall the virtual environment **

# Deactivate the virtual environment
rm -rf venv

# Reinstall the virtual environment
python -m venv venv
source venv/bin/activate

# install the dependencies again
pip install -r requirements.txt

# gfpgan and basicsrs issue fix
pip install git+https://github.com/xinntao/BasicSR.git@master
pip uninstall gfpgan -y
pip install git+https://github.com/TencentARC/GFPGAN.git@master

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)

  1. Install CUDA Toolkit 12.8.0
  2. 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
  3. Install dependencies:
pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip uninstall onnxruntime onnxruntime-gpu
pip install onnxruntime-gpu==1.26.0
  1. Usage:
python run.py --execution-provider cuda

CoreML Execution Provider (Apple Silicon)

Apple Silicon (M1 through M5) specific installation:

  1. Make sure you've completed the macOS setup above using Python 3.14.
  2. No extra install step is needed — requirements.txt pulls the official onnxruntime build, whose macOS wheels ship the CoreML execution provider. If you previously installed the unmaintained onnxruntime-silicon fork, remove it first, as it shadows the real package:
pip uninstall onnxruntime-silicon
pip install -r requirements.txt
  1. Usage:
python3.14 run.py --execution-provider coreml

Important Notes for macOS:

  • Python 3.11 is the minimum (onnxruntime dropped 3.10); 3.14 is recommended
  • Always run with python3.14 command not just python if you have multiple Python versions installed
  • If you get error about _tkinter missing, reinstall the tkinter package: brew reinstall [email protected]
  • 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:
    # List all installed Python versions
    brew list | grep python
    
    # Uninstall conflicting versions if needed
    brew uninstall --ignore-dependencies [email protected]
    
    # Keep only Python 3.14
    brew cleanup
    

CoreML Execution Provider (Apple Legacy)

  1. Install dependencies:
pip uninstall onnxruntime onnxruntime-coreml
pip install onnxruntime-coreml==1.21.0
  1. Usage:
python run.py --execution-provider coreml

DirectML Execution Provider (Windows)

  1. Install dependencies:
pip uninstall onnxruntime onnxruntime-directml
pip install onnxruntime-directml==1.21.0
  1. Usage:
python run.py --execution-provider directml

OpenVINO™ Execution Provider (Intel)

  1. Install dependencies:
pip uninstall onnxruntime onnxruntime-openvino
pip install onnxruntime-openvino==1.21.0

Note: onnxruntime-openvino newer than 1.21.0 must be installed together with openvino, and the two versions must correspond one-to-one. The supported pairings are:

onnxruntime-openvino OpenVINO
1.24.1 2025.4.1
1.23.0 2025.3
1.22.0 2025.1
# Example: onnxruntime-openvino 1.24.1 pairs with OpenVINO 2025.4.1
pip install openvino==2025.4.1
pip install onnxruntime-openvino==1.24.1

See the OpenVINO Execution Provider requirements for the full version-mapping details.

  1. Usage:
python run.py --execution-provider openvino

Usage

1. Image/Video Mode

2. Webcam Mode

Command Line Arguments (Unmaintained)

options:
  -h, --help                                               show this help message and exit
  -s SOURCE_PATH, --source SOURCE_PATH                     select a source image
  -t TARGET_PATH, --target TARGET_PATH                     select a target image or video
  -o OUTPUT_PATH, --output OUTPUT_PATH                     select output file or directory
  --frame-processor FRAME_PROCESSOR [FRAME_PROCESSOR ...]  frame processors (choices: face_swapper, face_enhancer, ...)
  --keep-fps                                               keep original fps
  --keep-audio                                             keep original audio
  --keep-frames                                            keep temporary frames
  --many-faces                                             process every face
  --map-faces                                              map source target faces
  --mouth-mask                                             mask the mouth region
  --video-encoder {libx264,libx265,libvpx-vp9}             adjust output video encoder
  --video-quality [0-51]                                   adjust output video quality
  --live-mirror                                            the live camera display as you see it in the front-facing camera frame
  --live-resizable                                         the live camera frame is resizable
  --max-memory MAX_MEMORY                                  maximum amount of RAM in GB
  --execution-provider {cpu} [{cpu} ...]                   available execution provider (choices: cpu, ...)
  --execution-threads EXECUTION_THREADS                    number of execution threads
  -v, --version                                            show program's version number and exit

Looking for a CLI mode? Using the -s/--source argument will make the run program in cli mode.

Press

Credits

Stargazers

Contributions

Alt

Stars to the Moon 🚀

Star History Chart

Deep-Live-Cam (hacksider/Deep-Live-Cam)

Searching Database…

这是什么?Deep-Live-Cam 是一款应用,只需一张源图片,就能实时换脸,也能一键生成换脸视频(深度伪造)。它既可以通过摄像头实时工作,也可以处理已有的图片或视频。
这是图形界面应用还是命令行工具?它主要是一款带图形界面的桌面 Python 应用,用来选择人脸以及摄像头或视频目标。此外,它还有一个不再维护的命令行模式,供编写脚本使用。
我该怎么让它运行起来?快速方式是下载适合你平台的预编译包 'Deep-Live-Cam 2.7.5 Ultimate',无需任何手动设置。手动方式则是克隆仓库、安装依赖、把换脸模型下载到 'models' 文件夹,然后运行 python run.py。
手动运行前,我需要安装什么?你需要安装 Python 3.11-3.14、pip、git 和 ffmpeg(Windows 上还需要 Visual Studio 2022 Runtimes)。如果要使用 GPU 加速,还需要 CUDA/cuDNN(Nvidia)、DirectML(Windows)或 OpenVINO(Intel)相关的软件包。
有内容限制或安装上的坑吗?该软件内置过滤器,会阻止处理裸露、血腥暴力等敏感内容。另外,手动安装明确需要一定的技术能力,不适合新手。
什么是 Face Mapping?Face Mapping 可以让你在同一画面或视频中同时出现的多个人身上,分别应用不同的换脸效果。
我能在视频通话或直播中使用它吗?可以。Webcam/Live 模式会显示一个预览画面,你可以把它接入 OBS 等工具,用换脸后的形象进行直播或视频通话。该功能也曾被用在 Omegle 和各类直播中。
我从哪里获取换脸模型?所需模型(gfpgan-1024.onnx 和 inswapper_128.fp16.onnx)可以从 HuggingFace 链接下载,并放入项目的 'models' 文件夹。首次运行时也会自动下载(约 300MB)。
对非技术用户来说,有没有免安装的选项?有。'Deep-Live-Cam 2.7.5 Ultimate' 预编译包提供开箱即用、针对硬件优化的版本,支持 Windows、Apple Silicon、CPU、NVIDIA 和 AMD,无需手动安装。
Creator
hacksider
Size
152.6 MB
Stars
97.1K
Age
3y
Commits · 90 Days