01d81674fd
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
149 lines
5.8 KiB
Markdown
149 lines
5.8 KiB
Markdown
<table align="center" border="0"><tr><td align="center" width="9999">
|
|
<img src="doc/DFL_welcome.jpg" align="center">
|
|
|
|
<p align="center">
|
|
|
|

|
|

|
|

|
|
</p>
|
|
|
|
# DeepFaceLab
|
|
### the leading software for creating deepfakes
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
More than 95% of deepfake videos are created with DeepFaceLab.
|
|
|
|
DeepFaceLab is used by such popular youtube channels as
|
|
|
|
| [Ctrl Shift Face](https://www.youtube.com/channel/UCKpH0CKltc73e4wh0_pgL3g)| [VFXChris Ume](https://www.youtube.com/channel/UCGf4OlX_aTt8DlrgiH3jN3g/videos)|
|
|
|---|---|
|
|
|
|
| [Sham00k](https://www.youtube.com/channel/UCZXbWcv7fSZFTAZV4beckyw/videos)| [Collider videos](https://www.youtube.com/watch?v=A91P2qtPT54&list=PLayt6616lBclvOprvrC8qKGCO-mAhPRux)| [iFake](https://www.youtube.com/channel/UCC0lK2Zo2BMXX-k1Ks0r7dg/videos)| [NextFace](https://www.youtube.com/channel/UCFh3gL0a8BS21g-DHvXZEeQ/videos)|
|
|
|---|---|---|---|
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
# What can I do using DeepFaceLab?
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
## Replace the face
|
|
|
|
<img src="doc/replace_the_face.jpg" align="center">
|
|
|
|
 https://www.youtube.com/watch?v=aau8qa3xgFs
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
## Change political speech*
|
|
|
|
<img src="doc/political_speech.jpg" align="center">
|
|
|
|
 https://www.youtube.com/watch?v=2Z1oA3GYPaY
|
|
|
|
\* also requires a skill in video editors such as *Adobe After Effects* or *Davinci Resolve*
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
# Deepfake native resolution progress
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
<img src="doc/deepfake_progress.png" align="center">
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
<img src="doc/make_everything_ok.png" align="center">
|
|
|
|
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.
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
## Releases
|
|
|
|
||||
|
|
|---|---|---|
|
|
|Windows|[github releases](https://github.com/iperov/DeepFaceLab/releases)|Direct download|
|
|
||[Google drive](https://drive.google.com/open?id=1BCFK_L7lPNwMbEQ_kFPqPpDdFEOd_Dci)|if the download quota is exceeded, add the file to your own google drive and download from it|
|
|
|Google Colab|[github](https://github.com/chervonij/DFL-Colab)|by @chervonij . You can train fakes for free using Google Colab.|
|
|
|CentOS Linux|[github](https://github.com/elemantalcode/dfl)|by @elemantalcode|
|
|
|Linux|[github](https://github.com/lbfs/DeepFaceLab_Linux)|by @lbfs |
|
|
||||
|
|
|
|
</td></tr>
|
|
|
|
<tr><td align="center" width="9999">
|
|
|
|
## Links
|
|
|
|
|
|
||||
|
|
|---|---|---|
|
|
|Guides and tutorials|||
|
|
||[DeepFaceLab guide](https://mrdeepfakes.com/forums/thread-guide-deepfacelab-2-0-explained-and-tutorials-recommended)|Main guide|
|
|
||[Faceset creation guide](https://mrdeepfakes.com/forums/thread-guide-celebrity-faceset-dataset-creation-how-to-create-celebrity-facesets)|How to create the right faceset |
|
|
||[Google Colab guide](https://mrdeepfakes.com/forums/thread-guide-deepfacelab-google-colab-tutorial)|Guide how to train the fake on Google Colab|
|
|
||[Compositing](https://mrdeepfakes.com/forums/thread-deepfacelab-2-0-compositing-in-davinci-resolve-vegas-pro-and-after-effects)|To achieve the highest quality, compose deepfake manually in video editors such as Davince Resolve or Adobe AfterEffects|
|
|
||[Discussion and suggestions](https://mrdeepfakes.com/forums/thread-deepfacelab-2-0-discussion-tips-suggestions)||
|
|
||||
|
|
|Supplementary material|||
|
|
||[Ready to work facesets](https://mrdeepfakes.com/forums/forum-celebrity-facesets)|Celebrity facesets made by community|
|
|
||[Pretrained models](https://mrdeepfakes.com/forums/forum-celebrity-facesets)|Use pretrained models made by community to speed up training|
|
|
||||
|
|
|Communication groups|||
|
|
||[telegram (English / Russian)](https://t.me/DeepFaceLab_official)|Don't forget to hide your phone number|
|
|
||[telegram (English only)](https://t.me/DeepFaceLab_official_en)|Don't forget to hide your phone number|
|
|
||QQ 951138799|中文 Chinese QQ group for ML/AI experts|
|
|
||[mrdeepfakes](https://mrdeepfakes.com/forums/)|the biggest NSFW English community|
|
|
||[reddit r/GifFakes/](https://www.reddit.com/r/GifFakes/new/)|Post your deepfakes there !|
|
|
||[reddit r/SFWdeepfakes/](https://www.reddit.com/r/SFWdeepfakes/new/)|Post your deepfakes there !|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td align="center" width="9999">
|
|
|
|
## How I can help the project?
|
|
|
|
|||
|
|
|---|---|
|
|
|Donate|Sponsor deepfake research and DeepFaceLab development.|
|
|
||[Donate via Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=lepersorium@gmail.com&lc=US&no_note=0&item_name=Support+DeepFaceLab&cn=&curency_code=USD&bn=PP-DonationsBF:btn_donateCC_LG.gif:NonHosted)
|
|
||[Donate via Yandex.Money](https://money.yandex.ru/to/41001142318065)|
|
|
||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](https://mrdeepfakes.com/forums/forum-celebrity-facesets)|
|
|
|||
|
|
|Star this repo|Register github account and push "Star" button.|
|
|
</td></tr>
|
|
|
|
<tr><td align="center" width="9999">
|
|
|
|
## Meme zone
|
|
<p align="center">
|
|
|
|

|
|
|
|
</p>
|
|
|
|
</td></tr>
|
|
<tr><td align="center" width="9999">
|
|
|
|
<sub>#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</sub>
|
|
|
|
</td></tr>
|
|
</table>
|