Oct 25th, 2019 by DFBlue
- tutorial
- guide
- how to
- deepfacelab
- deepfakes
FakeApp is a desktop app that allows users to easily create photorealistic faceswap videos. FakeApp swaps a face by training a neural networks to emulate it with a facial dataset, and using that network to transform faces in existing video into the face it has learned.
Deep Fake mac software. Does anyone have any suggestions of deep fake software for Macs? I've been looking and can't find anything. When most people hear the term 'deepfake' they automatically think of something NSFW. Let's adjust that stigma. This subreddit is dedicated to SFW machine learning. Faceswap is the leading free and Open Source multi-platform Deepfakes software. Powered by Tensorflow, Keras and Python; Faceswap will run on Windows, macOS and Linux. We have an active community supporting and developing the software. Please visit our Forums for any questions.
? Update 10/25/19: Added instructions for the new SAEHD model (amazing)
? Update 9/24/19: New post for AVATAR mode
Source and destination videos requirements
- High resolution (4k webm is best, lower than 1080p is not recommended)
- Faces not too far from camera and unobstructed
- Multiple angles, facial expressions
- Brightly and evenly lit
- Faces should somewhat match (beard, hat, hair, skin color, shape, glasses)
- Need at least 2 mins of good quality video, interview videos work well
Downloading the software
We will use DeepFaceLab to create the deepfakes. Another software, FaceSwap is also available, and will have a separate tutorial.
- Download DeepFaceLab
- Make sure to pick the right build for your GPU. If you don’t have a GPU, use the CLSSE build
- Here’s the direct link
- In that folder, you will find some pre-compiled face-sets. Go ahead and download one of them to get started quickly (otherwise you will have to build your own face-set from videos / images)
- The downloaded .exe will extract and install the program to the location of your choosing.
- A
workspace
folder will be created. This is the folder where all the action will happen.
- A
Extracting faces from source video
- Name the source video
data_src
and place it in theworkspace
folder.- Most formats that
ffmpeg
supports will work
- Most formats that
- Run
2) extract images from video data_src
- Use PNG (better quality)
- FPS <= 10 that gets you at least 2000 images (4k-6k is ideal)
- Run
4) data_src extract faces S3FD best GPU
- Extracted faces saved to
data_srcaligned
.
- Extracted faces saved to
- Run
4.2.2) data_src sort by similar histogram
- Groups similar detected faces together
- Run
4.1) data_src check result
- Delete faces that are not the right person, super blurry, cut off, upside down or sideways, or obstructed
- Run
4.2.other) data_src util add landmarks debug images
- New images with
_debug
suffix are created indata_src/aligned
which allow you to see the detected facial landmarks - Look for faces where landmarks are misaligned and delete the
_debug
and original images for those - Once you’re done, delete all
_debug
images by using the search bar to filter for_debug
- New images with
- Run
4.2.6) data_src sort by final
- Choose a target image number around 90% of your total faces
Extracting faces from destination video
You may choose to either extract from (1) the final video clip you want, or (2) one that is cut to include only the face you want to swap. If you choose 1, you may have to spend more time cleaning the extracted faces. If you choose 2 you will have to edit back the final video (and audio) after the swap.
- Name your final video
data_dst
and put it in theworkspace
folder - Run
3.2) extract PNG from video data_dst FULL FPS
- Run
5) data_dst extract faces S3FD best GPU
- Run
5.2) data_dst sort by similar histogram
- Run
5.1) data_dst check results
- Delete all faces that are not the target face to swap, or are the target face but upside down or sideways. Every face that you leave in will be swapped in the final video.
- Run
5.1) data_dst check results debug
- Delete any faces that are not correctly aligned or missing alignment, paying special attention to the jawline. We will manually align these frames in the next step.
- Run
5) data_dst extract faces MANUAL RE-EXTRACT DELETED RESULTS DEBUG
- We run this step to manually align frames that we deleted in the last step. The manually aligned faces will be automatically extracted and used for converting. You must manually align frames you want converted (swapped) even if it’s a lot of work. If you fail to do so, your swap will use the original face for those frames.
- Manual alignment instructions:
- For each face, move your cursor around until it aligns correctly onto the face
- If it’s not aligning, use the mouse scroll wheel / zoom to change the size of the boxes
- When alignment is correct, hit enter
- Go back and forth with , and .. If you don’t want to align a frame just skip it with .
- Mouse left click will lock/unlock landmarks. You can either lock it by clicking or hitting enter.
Training
Run
6) train SAEHD
Setting | Value | Notes |
---|---|---|
iterations | 100000 | Or until previews are sharp with eyes and teeth details. |
resolution | 128 | Increasing resolution requires significant VRAM increase |
face_type | f | |
learn_mask | y | |
optimizer_mode | 2 or 3 | Modes 2/3 place work on the gpu and system memory. For a 8gb card you can place on mode 3 and still most likely be able to do 160 res fakes with small batch size. |
architecture | df | |
ae_dims | 512 | Reduce if less GPU memory (256) |
ed_ch_dims | 21 | Reduce if less GPU memory |
random_warp | y | |
trueface | n | |
face_style_power | 0 | Can enable if you want to morph src more to dst. But disable after 15k iterations. |
bg_style_power | 10 | Turn off at 15k iterations. Styles on consume ~30% more vram so you will need to change batch size accordingly. |
color_transfer | varies | Try all modes in the interactive converter |
clipgrad | n | |
batch_size | 8 | Higher if you don't run out of memory |
sort_by_yaw | n | No, unless you have very few src faces |
random_flip | y |
Optional: History timelapse
Before converting, you can make a timelapse of the preview history (if you saved it during training). Do this only if you understand what
ffmpeg
is.Convert
- Run
7) convert SAEHD
Use the interactive converter and memorize the shortcut keys, it will speed up the process a lot.
Setting | Value | Notes |
interactive_converter | y | Definitely use the interactive converter since you can try out all the different settings before converting all the frames |
mode | overlay | |
mask_mode | learned | |
erode_modifier | 0-50 | If src face is bleeding outside the edge of dst face increase this to 'erode' away the src face on the outside |
blur_modifier | 10-200 | The more similar the face the lower you can set erode and blur and get great results. |
motion_blur | 0 | |
color_transfer | ebs | Try all of them, can even use different ones for different scenes / lighting |
sharpen_mode | box | |
sharpen_amount | 1-3 | |
super_resolution | RankSRGAN | Enhances detail, especially around the eyes |
color_degrade_power | n | |
export_alpha_mask | n | Outputs transparent PNGs for use in post-production tools if you need it |
- While conversion is running, you can preview the final images
data_dstmerged
folder to make sure it’s correct. If it’s not, just close the convert window, delete/merged
and start conversion again. - Run
8) converted to mp4
- Bitrate of 3-8 is sufficient for most
Done ?
Contributions by DFBlue, PlanetOfTheFakes
Follow us on Twitter @dfblue or Reddit u/deepfakeblue to keep up with everything that is going on in the world of deepfakes. Think Blue.
Nowadays, Deepfake videos are at a high level. So, in this article, I have listed some of the popular Deepfake Apps and tools that one can try. All these apps and tools can allow you to create a fake video and in such a way that it will look authentic.
But these videos can also cause trouble if they are used to misrepresent someone. All the deepfake apps and tools listed in this article is generally harmless.
Top 7 Best Beepfake Apps & Tools in 2020
So, let us now move to the list of apps that you can try.
1. Zao
Zao is the latest deepfake app that has now gone viral in China and is quite popular now. This app will help you create a deepfake video within seconds yes you have read it right, within seconds.
There is a huge collection of videos of series like big bang theory, Hollywood and Chinese movies that you can choose. The videos created by this app will look authentic yet will be slightly different from the original version.
2. Deepfake web beta
This is a website that will help you create a deepfake video on the webs itself. the3 website is paid that is $2 per hour of its usage. It has a deep learning ability that helps it to read and absorb the information of the face complexity,
which will eventually help the website to create a deepfake video that will look quite original. It can take at least 4 hours to learn the image or the video and another 30 min to swap the faces if required.
3. Avenge them
As you can guess by its name itself it is a marvel website that means it will swap your faces with the amazing marvel character, whichever you choose. This is a free website.
It will allow you to create amazing GIFs of your favorite marvel character. This is quite a fast website that creates good quality of GIFs and in total it has 18 marvel GIFs.
4. Doublicat
This is a funny and intreating deepfake video app that allows you to simply impose your face on the GIFs and also memes. It has an easy interface that makes it easier for everyone to use and understand.
You just have to first choose your own photo that you will like to impose than the memes or GIFs so that you can impose the face. This is a free app that can be used by both android and iOS users. you also have to make sure the symmetry otherwise it will be quite difficult to impose the face on the GIFs.
5. Machine tube
This is another amazing deepfake video make that will allow you to create the deepfake video on your computer itself. the requirement that will assure you a proper deepfake video is that you should have a powerful computer with high-end GPU and at least 2GB of VRAM. Also, Read Run High-End Games Without Graphics Card
The website has an advanced deep learning algorithm that will help it to learn the image before imposing on the memes or GIFs. The website also has some predefined images or models that you can take help from. This is a free website with quite interesting features.
6. Deep face lab
This is a windows program that will allow you to create a deepfake video. It has many advanced algorithms and features that is why it is more preferred for researchers and students who have computer vision.
It has an easy interface but some features require knowledge of computer programming. It is a free program that can be easily downloaded and installed on your PC.
The computer should be a powerful one with a high GPU. The users have to learn its usage through documentation as the program is not considered user friendly.
7. Deep art
This is also one of the most popular apps that have gone viral a few times and it can be used by both android and iOS users. apart from making amazing deepfake videos it has a unique feature in which it uses its AI to convert any photo that you select in a piece of artwork.
Deep Art is trained by the works of various artists which include Van Gogh, Leonardo da Vinci, Michelangelo, Picasso, and more. the app does not have any privacy issues and is well trusted.
Eleggible’s Final Words
All the app or websites mentioned above are amazing and popular for making deepfake videos that will look authentic if you take all the measures while making them.
These are all free to use and have an easy interface with few programming techniques that you should know beforehand.
Deep Fake Software Mac
All the websites are trusted, harmless, and have no privacy issues. Download or visit the app to give them a try, hope this article was a help.