返回目录
Skills开发与自动化新手

GitHub - hacksider/Deep-Live-Cam: real time face swap and one-click video deepfake with only a single image

Deep-Live-Cam 2.1.6 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

0 次阅读2026/08/11 发布
GitHub - hacksider/Deep-Live-Cam: real time face swap and one-click video deepfake with only a single image 来源图片

社区作者 · zZz

它解决什么问题

Deep-Live-Cam 2.1.6

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.

Pre-built Quickstart

Windows • Mac Silicon • CPU • NVIDIA • AMD

Builds optimized for your hardware.

Ultimate includes 30+ exclusive features , performance optimizations, and priority support .

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

  • 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

ishowspeed.mp4

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.14 recommended; 3.11-3.14 supported)
可复制命令
pip
可复制命令
git
  • ffmpeg - iex (irm ffmpeg.tc.ht)
  • Visual Studio 2022 Runtimes (Windows)
  1. Clone the Repository
命令
git clone --depth 1 https://github.com/hacksider/Deep-Live-Cam.git
命令
cd Deep-Live-Cam
  1. Download the Models
  • GFPGANv1.4
  • inswapper_128_fp16.onnx

Place these files in the " models " folder.

  1. Install Dependencies

We highly recommend using a venv to avoid issues.

For Windows:

命令
python -m venv venv

venv \S cripts \a ctivate

命令
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 python@3.14

Install tkinter package (required for the GUI)

命令
brew install python-tk@3.14

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)

  • 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:
命令
pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
命令
pip uninstall onnxruntime onnxruntime-gpu
命令
pip install onnxruntime-gpu==1.21.0
  • Usage:
命令
python run.py --execution-provider cuda

CoreML Execution Provider (Apple Silicon)

Apple Silicon (M1 through M5) specific installation:

可复制命令
Make sure you've completed the macOS setup above using Python 3.14.

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:

  • No extra install step is needed — requirements.txt pulls the official
命令
pip uninstall onnxruntime-silicon
命令
pip install -r requirements.txt
  • 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 python-tk@3.14
  • 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 python@3.11

Keep only Python 3.14

命令
brew cleanup

CoreML Execution Provider (Apple Legacy)

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

DirectML Execution Provider (Windows)

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

OpenVINO™ Execution Provider (Intel)

  • 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.

  • Usage:
命令
python run.py --execution-provider openvino

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.
  1. 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

  • Download models here

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

  • 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!
  • maxwbuckley : For making the effort to optimize this for mac!
  • 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 ❤️

Contributions

Stars to the Moon 🚀

— 本文由 AI 根据公开来源辅助整理,命令、版本与许可证请在使用前到原始页面复核。

安装 / 开始使用

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.

Pre-built Quickstart Windows • Mac Silicon • CPU • NVIDIA • AMD Builds optimized for your hardware. Ultimate includes 30+ exclusive features , performance optimizations, and priority support .

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

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 ishowspeed.

mp4 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.

  • Select a face
  • Select which camera to use
  • Press live!

步骤 1

可复制命令
Set up Your Platform
可复制命令
Python (3.14 recommended; 3.11-3.14 supported)
可复制命令
pip
可复制命令
git
  • ffmpeg - iex (irm ffmpeg.tc.ht)
  • Visual Studio 2022 Runtimes (Windows)
  1. Clone the Repository
命令
git clone --depth 1 https://github.com/hacksider/Deep-Live-Cam.git
命令
cd Deep-Live-Cam
  1. Download the Models

Place these files in the " models " folder.

  • GFPGANv1.4
  • inswapper_128_fp16.onnx

We highly recommend using a venv to avoid issues. For Windows:

  1. Install Dependencies
命令
python -m venv venv

venv \S cripts \a ctivate

命令
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 python@3.14

Install tkinter package (required for the GUI)

命令
brew install python-tk@3.14

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)

  • 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:
命令
pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
命令
pip uninstall onnxruntime onnxruntime-gpu
命令
pip install onnxruntime-gpu==1.21.0

来源教程配图

Demo GIF
配图 1 · Demo GIF查看原图
Lite / Ultimate Download Banner
配图 2 · Lite / Ultimate Download Banner查看原图
Windows
配图 3 · Windows查看原图
Mac Silicon
配图 4 · Mac Silicon查看原图
CPU
配图 5 · CPU查看原图
Download
配图 6 · Download查看原图
easysteps
配图 7 · easysteps查看原图
resizable-gif
配图 8 · resizable-gif查看原图

适用场景

开发工作流
自动化实践

Skill 讨论与实践反馈

0

还没有讨论

分享一条可复现的补充、问题或使用经验。

登录后参与回复一起补充步骤、结果和注意事项。