Beginner Deepfake Tutorial: DeepFaceLab 2.0 - DeepfakeVFX.com (2024)

Easy Deepfake Tutorial: DeepFaceLab 2.0 Quick96

Wondering how to make deepfakes? This easy tutorial will have you creating deepfakes in just a few hours! We’ll start with DeepFaceLab 2.0 Quick96, a preset training model that is easy to use on most computers that have Windows and an NVIDIA GPU. By the end of this deepfake guide you will be familiar with…

Table of Contents

Step 2: Extract ImagesStep 3: Extract FacesetsStep 4: View FacesetsStep 5: TrainingStep 6: Merging

Step 1: Download & Install DeepFaceLab

Visithttps://github.com/iperov/DeepFaceLab.

Scroll down to the section labeled ‘Releases’. You can select the torrent magnet link or download from mega.nz. Mega users can right-click on the file, select download, then standard download.

Download DeepFaceLab 2.0 from Mega.nz

Once your download is complete you can double-click on the .exe file or use your favorite zip program to extract. There is no setup for DeepFaceLab. Once the files are extracted the installation is complete.

Open the folder labeled DeepFaceLab_NVIDIA. Here you will see a couple of folders and several batch files used in the deepfake process. For this tutorial we will only be using 9 of these files.

First let’s have a look at the workspace folder. In this directory you will see 3 more folders which will hold our images and trained model files. The 2 video files include data_src (our source video) and data_dst (our destination video). Click back to the main folder and we’ll get started with the deepfake.

Step 2: Extract Images

Throughout this tutorial we will be using DeepFaceLab’s default settings by pressing Enter or Return when asked for input.

Double-click on the file labeled ‘2) extract images from video data_src’ and press enter a few times to use the default values. The video file will be processed and a .png file for each frame will be created. Press any key or simply close the window.

Do the same for data_dst using the file ‘3) extract images from video data_dst FULL FPS’ with default values.

Step 3: Extract Facesets

Now we’ll process the images and extract the faces to be used in our deepfake. Double-click the file ‘4) data_src faceset extract’ and use the default values. After a few minutes the extraction will complete and give you a report on the number of images found and faces detected.

Do the same for data_dst using the file ‘5) data_dst faceset extract’.

Step 4: View Facesets

After extraction we can view the source and destination facesets using the files ‘4.1) data_src view aligned result’ and ‘data_dst view aligned results’ respectively. Here we can remove unwanted faces from the project but for now we will be using all the images. Close the image viewer.

Step 5: Training

It is now time to begin training our deepfake model. Double-click the file labeled ‘6) train Quick96.bat’. Again, we will use the default settings. The software will load all our images files and attempt to run the first iteration of our training. If it is successful, then the training preview window will open. If the trainer fails to run, then you will need to try CPU only training which is not covered in this video.

Let’s take a moment to look at the preview window. At the top we have some keyboard commands. Below that a graph indicating the accuracy of our training, and a preview of our model images.

Press the P key to update the preview window and notice the graph and images change. These lines represent loss values that will approach zero over time, so the lower the line the better the results will be. You can see these same values represented as numbers in the command window.

The image preview has several columns showing our source and destination images being processed. In the last column we can see the current progress of our deepfake faceset. Use this preview window to decide when you want to end the training. Press Enter to save the model and exit.

Step 6: Merging

Now that our training is complete, we can merge the faces and create our final deepfake video.

Start by running ‘7) merge Quick96’ and press Enter a few times to load the default settings. In the merger window you will see a map of keyboard commands. For this tutorial we will only be using a few of these commands.

Press the Tab key to switch between the preview window and the keyboard map. If you see a black preview just use the > key to advance to the first frame. You will notice the current frame number and settings displayed in the command window. Use the W and S keys to change the erode mask value to 20, noticing how the border around the face contracts. Next use the E and D keys to raise the blur mask value to 100.

Now we apply these setting to the rest of our frames by pressing the Shift and / keys simultaneously. Finally, we process the remaining frames by pressing the Shift and > keys. Once the merger reaches 100 percent, we can close both windows.

The last part of this process is to merge our new deepfake frames into a video file with our destination audio. Double-click the file labeled ‘8) merged to mp4.bat’ and press Enter to begin processing. Close the window when merging is done.

Finally we are ready to view our deepfake video. Navigate to the workspace folder and you will see a couple new files. Play the file labeled ‘result.mp4’. Congratulations! You have successfully created a deepfake!

Beginner Deepfake Tutorial: DeepFaceLab 2.0 - DeepfakeVFX.com (2024)

FAQs

How to create a deepfake with DeepFaceLab? ›

Beginner Deepfake Tutorial: DeepFaceLab 2.0
  1. Step 1: Download & Install DeepFaceLab. Visit https://github.com/iperov/DeepFaceLab. ...
  2. Step 2: Extract Images. ...
  3. Step 3: Extract Facesets. ...
  4. Step 4: View Facesets. ...
  5. Step 5: Training. ...
  6. Step 6: Merging.

What is the difference between DeepFace and deepfake? ›

DeepFace is a deep learning facial recognition system developed by Facebook that can identify human faces in digital images, often very well. However, the modelling techniques underlying this technology are subject to bias and can also be used to create realistic fake videos and images, which are known as deepfakes.

Can you make deepfakes for free? ›

Yes, several free deepfake software and apps are available for use. DeepFaceLab and FaceSwap are free software tools, and apps like Reface and ZAO also offer free versions.

Can I use DeepFaceLab without GPU? ›

A: DeepFaceLab requires a Windows PC and CPU processing power. A graphics card is optional but not necessary for CPU-only training.

Can you go to jail for deepfakes? ›

The distribution of deepfakes is a crime in and of itself, and anyone caught trying to profit from their possession faces the same fate. Another time, a fine of up to $1,000 and a maximum sentence of one year. Some 42 states have passed legislation making it illegal to post or circulate revenge p*rn.

What app do people use to make deepfakes? ›

Deepfakesweb is a cloud-based deepfake app that uses AI to seamlessly swap faces in videos. It offers an easy-to-use interface where users simply upload videos of source and target faces, then the app handles training the AI model and rendering the final deepfake video.

Are personal deepfakes illegal? ›

Laws are in place to take legal action against deepfakes that ruin reputation, bully, or violate privacy. If deepfakes spread false and harmful information causing defamation, libel laws can be invoked.

Can you make deepfakes on your phone? ›

You can use deepfake apps to create fun videos to send to friends. Just be sure to use your own images—using other people's likenesses may get you into legal trouble.

What is the best AI generator for deepfakes? ›

DeepFaceLab is one of the leading software for deepfake creation. Over 95% of deepfakes created on the internet today are done with the DeepFaceLab AI solution. Its open-source nature, hosted on Github, means the deepfake image generator empowers users to swap faces in both images and videos with ease.

What system is required for DeepFaceLab? ›

System Requirements
ComponentRecommendation
Operating SystemWindows 10/11 or Linux. English keyboard layout.
GPUHigh-end NVIDIA GPU with plenty of VRAM.
CPUAt least a 4 core CPU.
RAMAt least 32GB. Depends on other hardware, page file size, and project size.
3 more rows

Does DeepFaceLab require an internet connection? ›

You can also train on a CPU with AVX instruction set. The file labeled '10) make CPU only. bat' will modify your software by installing an older version of TensorFlow. An internet connection is temporarily required for this update.

What are the minimum requirements for deepfakes? ›

As with all machine learning techniques, deepfakes can be created on any PC with a minimum of 4 GB of RAM. However, a machine with 8 GB of RAM or higher and a GPU (a graphics card) is strongly recommended. Training a model on a CPU is likely to take months to complete, which does not make it a realistic endeavor.

Is deepfake tech illegal? ›

Is it illegal to make a deepfake? The legality of creating deepfakes largely depends on the intent and usage. Nonconsensual deepfake p*rnography, defamatory deepfakes, or those causing emotional distress can be illegal. The creation of deepfakes involving public figures can also trigger legal implications.

How to make a deep fake image? ›

How to Swap Face With a Deepfake App on a Phone
  1. Download PhotoDirector. Downloading the best deepfake app, PhotoDirector, is easy and free! ...
  2. Tap AI Face Swap. ...
  3. Select or Upload a Reference Picture. ...
  4. Upload a Photo of Your Face. ...
  5. Save and Share the Face-swapped Photo.
May 3, 2024

How much does DeepFaceLab cost? ›

Software like DeepFaceLab and FaceSwap are often used because they are open-source and free to use.

Is DeepFaceLab legit? ›

DeepFaceLab is a widely-used open-source software that enables the creation of deepfake videos and images. Deepfake technology, a portmanteau of “deep learning” and “fake”, leverages artificial intelligence to manipulate or generate digital media content that appears remarkably genuine.

Top Articles
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 5987

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.