DeepFaceLab is the leading software for creating deepfakes.
Find a file
Colombo 01d81674fd added new XSegEditor !
here new whole_face + XSeg workflow:

with XSeg model you can train your own mask segmentator for dst(and/or src) faces
that will be used by the merger for whole_face.

Instead of using a pretrained segmentator model (which does not exist),
you control which part of faces should be masked.

new scripts:
	5.XSeg) data_dst edit masks.bat
	5.XSeg) data_src edit masks.bat
	5.XSeg) train.bat

Usage:
	unpack dst faceset if packed

	run 5.XSeg) data_dst edit masks.bat

	Read tooltips on the buttons (en/ru/zn languages are supported)

	mask the face using include or exclude polygon mode.

	repeat for 50/100 faces,
		!!! you don't need to mask every frame of dst
		only frames where the face is different significantly,
		for example:
			closed eyes
			changed head direction
			changed light
		the more various faces you mask, the more quality you will get

		Start masking from the upper left area and follow the clockwise direction.
		Keep the same logic of masking for all frames, for example:
			the same approximated jaw line of the side faces, where the jaw is not visible
			the same hair line
		Mask the obstructions using exclude polygon mode.

	run XSeg) train.bat
		train the model

		Check the faces of 'XSeg dst faces' preview.

		if some faces have wrong or glitchy mask, then repeat steps:
			run edit
			find these glitchy faces and mask them
			train further or restart training from scratch

Restart training of XSeg model is only possible by deleting all 'model\XSeg_*' files.

If you want to get the mask of the predicted face (XSeg-prd mode) in merger,
you should repeat the same steps for src faceset.

New mask modes available in merger for whole_face:

XSeg-prd	  - XSeg mask of predicted face	-> faces from src faceset should be labeled
XSeg-dst	  - XSeg mask of dst face        	-> faces from dst faceset should be labeled
XSeg-prd*XSeg-dst - the smallest area of both

if workspace\model folder contains trained XSeg model, then merger will use it,
otherwise you will get transparent mask by using XSeg-* modes.

Some screenshots:
XSegEditor: https://i.imgur.com/7Bk4RRV.jpg
trainer   : https://i.imgur.com/NM1Kn3s.jpg
merger    : https://i.imgur.com/glUzFQ8.jpg

example of the fake using 13 segmented dst faces
          : https://i.imgur.com/wmvyizU.gifv
2020-03-24 12:15:31 +04:00
.github upd ISSUE_TEMPLATE.md 2019-01-24 15:15:56 +04:00
.vscode 1 2020-01-21 18:50:52 +04:00
core added new XSegEditor ! 2020-03-24 12:15:31 +04:00
DFLIMG _ 2020-03-21 11:11:52 +04:00
doc Alipay 捐款 2020-03-22 20:56:57 +04:00
facelib fixed face jitter 2020-03-18 13:40:06 +04:00
localization added new XSegEditor ! 2020-03-24 12:15:31 +04:00
mainscripts _ 2020-03-21 11:11:52 +04:00
merger added XSeg model. 2020-03-15 15:12:44 +04:00
models SAEHD: added 'dfuhd' and 'liaeuhd' archi 2020-03-23 22:01:44 +04:00
samplelib added new XSegEditor ! 2020-03-24 12:15:31 +04:00
XSegEditor added new XSegEditor ! 2020-03-24 12:15:31 +04:00
.gitignore added new extractor: S3FD, 2019-03-10 23:18:10 +04:00
_config.yml Set theme jekyll-theme-cayman 2020-03-02 17:53:15 +04:00
CODEGUIDELINES initial 2018-06-04 17:12:43 +04:00
LICENSE Initial commit 2018-06-04 17:10:00 +04:00
main.py added new XSegEditor ! 2020-03-24 12:15:31 +04:00
project.code-workspace DFL-2.0 initial branch commit 2020-01-21 18:43:39 +04:00
README.md added new XSegEditor ! 2020-03-24 12:15:31 +04:00
requirements-colab.txt Upgraded to TF version 1.13.2 2020-01-25 21:58:19 +04:00
requirements-cuda.txt added new XSegEditor ! 2020-03-24 12:15:31 +04:00

DeepFaceLab

the leading software for creating deepfakes

More than 95% of deepfake videos are created with DeepFaceLab.

DeepFaceLab is used by such popular youtube channels as

Ctrl Shift Face VFXChris Ume
Sham00k Collider videos iFake NextFace

What can I do using DeepFaceLab?

Replace the face

https://www.youtube.com/watch?v=aau8qa3xgFs

Change political speech*

https://www.youtube.com/watch?v=2Z1oA3GYPaY

* also requires a skill in video editors such as Adobe After Effects or Davinci Resolve

Deepfake native resolution progress

Unfortunately, there is no "make everything ok" button in DeepFaceLab. You should spend time studying the workflow and growing your skills. A skill in programs such as AfterEffects or Davince Resolve is also desirable.

Releases

Windows github releases Direct download
Google drive if the download quota is exceeded, add the file to your own google drive and download from it
Google Colab github by @chervonij . You can train fakes for free using Google Colab.
CentOS Linux github by @elemantalcode
Linux github by @lbfs
Guides and tutorials
DeepFaceLab guide Main guide
Faceset creation guide How to create the right faceset
Google Colab guide Guide how to train the fake on Google Colab
Compositing To achieve the highest quality, compose deepfake manually in video editors such as Davince Resolve or Adobe AfterEffects
Discussion and suggestions
Supplementary material
Ready to work facesets Celebrity facesets made by community
Pretrained models Use pretrained models made by community to speed up training
Communication groups
telegram (English / Russian) Don't forget to hide your phone number
telegram (English only) Don't forget to hide your phone number
QQ 951138799 中文 Chinese QQ group for ML/AI experts
mrdeepfakes the biggest NSFW English community
reddit r/GifFakes/ Post your deepfakes there !
reddit r/SFWdeepfakes/ Post your deepfakes there !

How I can help the project?

Donate Sponsor deepfake research and DeepFaceLab development.
Donate via Paypal
Donate via Yandex.Money
bitcoin:bc1qkhh7h0gwwhxgg6h6gpllfgstkd645fefrd5s6z
Alipay 捐款
Last donations 50$ ( Tomas Hajka )
10$ ( 朱 阳阳 )
24$ ( NextFace )
Collect facesets You can collect faceset of any celebrity that can be used in DeepFaceLab and share it in the community
Star this repo Register github account and push "Star" button.

Meme zone

#deepfacelab #deepfakes #faceswap #face-swap #deep-learning #deeplearning #deep-neural-networks #deepface #deep-face-swap #fakeapp #fake-app #neural-networks #neural-nets #tensorflow #cuda #nvidia