###### This software is intended as a productive contribution to the AI-generated media industry. It aims to assist artists with tasks like animating custom characters or using them as models for clothing, etc.
## Disclaimer
###### 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.
This software is intended as a productive contribution to the AI-generated media industry. It aims to assist artists with tasks like animating custom characters or using them as models for clothing, etc.
###### 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.
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 law and ethics. We may shut down the project or add watermarks if legally required.
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.
[Download latest pre-built version with CUDA support](https://hacksider.gumroad.com/l/vccdmm) - No Manual Installation/Downloading required and Early features testing.
## Benchmarks
**Nearly 0% detection!**

## Installation (Manual)
## Installation (Manual)
**Please be aware that the installation needs technical skills and is not for beginners, consider downloading the prebuilt.**
**Please be aware that the installation requires technical skills and is not for beginners. Consider downloading the prebuilt version.**
<details>
<details>
<summary>Click to see the process</summary>
<summary>Click to see the process</summary>
@ -39,24 +67,24 @@ Users are expected to use this software responsibly and legally. If using a real
This is more likely to work on your computer but will be slower as it utilizes the CPU.
This is more likely to work on your computer but will be slower as it utilizes the CPU.
2. [inswapper_128_fp16.onnx](https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128.onnx) (Note: Use this [replacement version](https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx) if you encounter issues)
2. [inswapper\_128\_fp16.onnx](https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128.onnx) (Note: Use this [replacement version](https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx) if you encounter issues)
Place these files in the "**models**" folder.
Place these files in the "**models**" folder.
@ -76,18 +104,20 @@ brew install python-tk@3.10
**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).
**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).
- Choose a source face image and a target image/video.
- Choose a source face image and a target image/video.
- Click "Start".
- Click "Start".
- The output will be saved in a directory named after the target video.
- The output will be saved in a directory named after the target video.
**2. Webcam Mode**
**2. Webcam Mode**
- Execute `python run.py`.
- Execute `python run.py`.
- Select a source face image.
- Select a source face image.
- Click "Live".
- Click "Live".
- Wait for the preview to appear (10-30 seconds).
- Wait for the preview to appear (10-30 seconds).
- Use a screen capture tool like OBS to stream.
- Use a screen capture tool like OBS to stream.
- To change the face, select a new source image.
- To change the face, select a new source image.
## Features - Everything is realtime
### Mouth Mask
**Retain your original mouth using Mouth Mask**

### Face Mapping
**Use different faces on multiple subjects**

### Your Movie, Your Face
**Watch movies with any face in realtime**

## Benchmarks
**Nearly 0% detection!**

## Command Line Arguments (Unmaintained)
## Command Line Arguments (Unmaintained)
@ -216,9 +230,9 @@ options:
Looking for a CLI mode? Using the -s/--source argument will make the run program in cli mode.
Looking for a CLI mode? Using the -s/--source argument will make the run program in cli mode.
## Press
## Press
**We are always open to criticism and ready to improve, that's why we didn't cherrypick anything.**
**We are always open to criticism and are ready to improve, that's why we didn't cherry-pick anything.**
- [*"Deep-Live-Cam goes viral, allowing anyone to become a digital doppelganger"*](https://arstechnica.com/information-technology/2024/08/new-ai-tool-enables-real-time-face-swapping-on-webcams-raising-fraud-concerns/) - Ars Technica
- [*"Deep-Live-Cam goes viral, allowing anyone to become a digital doppelganger"*](https://arstechnica.com/information-technology/2024/08/new-ai-tool-enables-real-time-face-swapping-on-webcams-raising-fraud-concerns/) - Ars Technica
- [*"Thanks Deep Live Cam, shapeshifters are among us now"*](https://dataconomy.com/2024/08/15/what-is-deep-live-cam-github-deepfake/) - Dataconomy
- [*"Thanks Deep Live Cam, shapeshifters are among us now"*](https://dataconomy.com/2024/08/15/what-is-deep-live-cam-github-deepfake/) - Dataconomy
@ -231,24 +245,28 @@ Looking for a CLI mode? Using the -s/--source argument will make the run program
- [*"New Real-Time Face-Swapping AI Allows Anyone to Mimic Famous Faces"*](https://www.digitalmusicnews.com/2024/08/15/face-swapping-ai-real-time-mimic/) - Digital Music News
- [*"New Real-Time Face-Swapping AI Allows Anyone to Mimic Famous Faces"*](https://www.digitalmusicnews.com/2024/08/15/face-swapping-ai-real-time-mimic/) - Digital Music News
- [*"This real-time webcam deepfake tool raises alarms about the future of identity theft"*](https://www.diyphotography.net/this-real-time-webcam-deepfake-tool-raises-alarms-about-the-future-of-identity-theft/) - DIYPhotography
- [*"This real-time webcam deepfake tool raises alarms about the future of identity theft"*](https://www.diyphotography.net/this-real-time-webcam-deepfake-tool-raises-alarms-about-the-future-of-identity-theft/) - DIYPhotography
- [*"That's Crazy, Oh God. That's Fucking Freaky Dude... That's So Wild Dude"*](https://www.youtube.com/watch?time_continue=1074&v=py4Tc-Y8BcY) - SomeOrdinaryGamers
- [*"That's Crazy, Oh God. That's Fucking Freaky Dude... That's So Wild Dude"*](https://www.youtube.com/watch?time_continue=1074&v=py4Tc-Y8BcY) - SomeOrdinaryGamers
- [*"Alright look look look, now look chat, we can do any face we want to look like chat"*](https://www.youtube.com/live/mFsCe7AIxq8?feature=shared&t=2686) - IShowSpeed
## Credits
## Credits
- [ffmpeg](https://ffmpeg.org/): for making video related operations easy
- [ffmpeg](https://ffmpeg.org/): for making video-related operations easy
- [deepinsight](https://github.com/deepinsight): for their [insightface](https://github.com/deepinsight/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](https://github.com/deepinsight/insightface?tab=readme-ov-file#license).
- [deepinsight](https://github.com/deepinsight): for their [insightface](https://github.com/deepinsight/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](https://github.com/deepinsight/insightface?tab=readme-ov-file#license).
- [havok2-htwo](https://github.com/havok2-htwo) : for sharing the code for webcam
- [havok2-htwo](https://github.com/havok2-htwo): for sharing the code for webcam
- [GosuDRM](https://github.com/GosuDRM) : for open version of roop
- [GosuDRM](https://github.com/GosuDRM): for the open version of roop
- [pereiraroland26](https://github.com/pereiraroland26) : Multiple faces support
- [pereiraroland26](https://github.com/pereiraroland26): Multiple faces support
- [vic4key](https://github.com/vic4key) : For supporting/contributing on this project
- [vic4key](https://github.com/vic4key): For supporting/contributing to this project
- [KRSHH](https://github.com/KRSHH) : For his contributions
- [kier007](https://github.com/kier007): for improving the user experience
- and [all developers](https://github.com/hacksider/Deep-Live-Cam/graphs/contributors) behind libraries used in this project.
- [qitianai](https://github.com/qitianai): for multi-lingual support
- Foot Note: Please be informed that the base author of the code is [s0md3v](https://github.com/s0md3v/roop)
- and [all developers](https://github.com/hacksider/Deep-Live-Cam/graphs/contributors) behind libraries used in this project.
- All the wonderful users who helped making this project go viral by starring the repo ❤️
- Footnote: Please be informed that the base author of the code is [s0md3v](https://github.com/s0md3v/roop)
- All the wonderful users who helped make this project go viral by starring the repo ❤️
program.add_argument('--mouth-mask',help='mask the mouth region',dest='mouth_mask',action='store_true',default=False)
program.add_argument('--mouth-mask',help='mask the mouth region',dest='mouth_mask',action='store_true',default=False)
program.add_argument('--video-encoder',help='adjust output video encoder',dest='video_encoder',default='libx264',choices=['libx264','libx265','libvpx-vp9'])
program.add_argument('--video-encoder',help='adjust output video encoder',dest='video_encoder',default='libx264',choices=['libx264','libx265','libvpx-vp9'])
program.add_argument('--video-quality',help='adjust output video quality',dest='video_quality',type=int,default=18,choices=range(52),metavar='[0-51]')
program.add_argument('--video-quality',help='adjust output video quality',dest='video_quality',type=int,default=18,choices=range(52),metavar='[0-51]')
program.add_argument('--live-mirror',help='The live camera display as you see it in the front-facing camera frame',dest='live_mirror',action='store_true',default=False)
program.add_argument('--live-mirror',help='The live camera display as you see it in the front-facing camera frame',dest='live_mirror',action='store_true',default=False)
program.add_argument('--live-resizable',help='The live camera frame is resizable',dest='live_resizable',action='store_true',default=False)
program.add_argument('--live-resizable',help='The live camera frame is resizable',dest='live_resizable',action='store_true',default=False)
program.add_argument('--max-memory',help='maximum amount of RAM in GB',dest='max_memory',type=int,default=suggest_max_memory())
program.add_argument('--max-memory',help='maximum amount of RAM in GB',dest='max_memory',type=int,default=suggest_max_memory())