How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (2024)

Deepfakes has taken the internet by the storm, resulting in some hilarious, weird, and unsettling videos. But how do you create deepfake videos? Enter DeepFaceLab, a popular deepfake software for Windows which uses machine learning to create face-swapped videos. It is free, open-sourced, and relatively easy to learn.

However, first-time users might need some instructions to get started. For instance, to create a deepfake video, you will need at least two sample videos; one is the source video and the other one is destination video. It first disintegrates the video into individual frames and looks for faces in every frame using facial recognition. After detecting and extracting faces from each frame of both source and destination video, it then trains the algorithm to match similar facial expressions of source material with destination frames. DeepFaceLab then applies the source face mask on the destination video frames. As you might notice, this requires a fairly powerful PC and some free time.

It also goes without saying, if you’re going to use DeepFaceLab to create funny videos for YouTube, it’s probably a good idea to read copyright guidelines. Also, do notcreate Deepfakes of any person without their consent, else, it could get you in serious legal trouble. With that said, let’s create our first deep fake video. Shall we?

Download and Install DeepFaceLab

You can download the pre-built DeepFaceLab software from their Github page. Click this link and select the appropriate software for your machine. The software is available for a lot of different GPUs and even supports integrated Intel Graphics, you can read more about which build would be best for you, here.

Pro Tip: NVIDIA GTX and RTX graphics cards work best with this build.

After selecting the appropriate software bundle, download and extract the contents to your local storage, preferably with a lot of empty space. While testing this software, a small project took up 2 GB so decide accordingly.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (1)

DeepFaceLab doesn’t have a GUI but is pretty straightforward to use. You won’t have much problem understanding the workflow but mastering the software takes time, skill, and determination.

Step 1: Add video files to the Project

Browse to the directory where you extracted the software. You’ll see a lot of batch files and two sub-folders. Open ‘Workspace‘ folder by double-clicking and you’ll see two videos; ‘data_src‘ and ‘data_dst‘.

We’ll extract faces from ‘data_src‘ and paste those faces onto ‘data_dst‘.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (2)

Replace these video files with the files you want to use or keep the original files to practice your first deep fake video.

Step 2: Extracting Frames from the videos

The next step in the process is to extract the frames from both source video and the destination video. First, we’ll extract the frames from the source video.

To do this run the batch file in the DeepFaceLab directory which reads ‘extract images from video data_src‘. It would open a command prompt window and ask your preferences. You can skip all these settings for the first time and let it run on default settings by pressing ‘Enter or return‘ key.

Depending on the length of the video, the number of frames, and your computer hardware it may take a few minutes to extract the frames. After it is done, you can see the extracted frames in the data_src folder in the Workspace.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (3)

Repeat the same process to extract the frames from the destination video by executing another batch file which reads ‘extract images from video data_dst FULL FPS‘.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (4)

Step 3: Extracting Faces from the Frames

Now, we have still frames of the videos and we’ll use the software to extract the faces from each frame. We’ll do this for both the source file and the destination file.

There are a few different algorithms which you can use to detect and extract faces from the frames. Some are more accurate than the other and I’m sure you’ll figure out the best one for you in time. For now, Find ‘data_src extract faces S3FD all GPU‘ batch file and execute it. Extracting faces from hundreds of frames will take some time so let the window finish.

After the process is done, you’ll find all the faces extracted in ‘Aligned‘ folder in ‘data_src‘ directory.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (5)

Now, proceed to do the same for the destination video frames by executing the batch file corresponding to the file which we used for the source file. It is crucial because if you use different algorithms for source and destination frames then your deepfake won’t look authentic. Find ‘data_dst extract faces S3FD all GPU‘ in the DeepFaceLab directory.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (6)

Step 4: Train the Software to link facial expressions

This is the time where we’ll train the software to recognize similar facial expressions so that it can easily replace the face in the destination video file. There are several different settings but we’ll stick with the beginner course. Find and execute ‘train H64‘ from the list of batch files.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (7)

It would ask you for some settings but leave them at default and move on by pressing the ‘Enter or return‘ key. You will see that the software is now matching the faces from the two videos and training itself. Let the software train until the original and generated faces start to resemble each other. Press ‘s’ key to save the trainer and ‘Enter or return’ key to exit.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (8)

Step 5: Convert the faces in the Destination Video

It’s time to paste the faces on the destination video frames. To do this find ‘convert H64‘ batch file and execute. It will show you a window that looks something as shown in the figure below. You can tweak the final mask to see how the final frame with the different face should look like.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (9)

Use these keys to see how the converted frame would look like. After you’re satisfied with the frame, you can repeat the same for each frame or press ‘Enter’ key to let the software take care of it.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (10)

After the batch file is done executing, you’ll see all the converted frames in the workspace folder under data_dst subfolder.

Step 6: Convert the Frames into a video

Now, the frames of the final deepfake video are created, you just have to assemble the frames into a video. You can easily use any software to do this or run the executable batch file which reads ‘converted to MP4‘.

Viola, you’ve now created your first deepfake. As we’ve converted the frames to a video we won’t get any audio and you’ll have to add it manually using a video editor.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (11)

Closing Words

As you can see for the output gif, the results are not quite magical, but it is pretty cool.

Overall, this was a quick walkthrough of the DeepFaceLab which utilizes machine learning to replace faces in videos. It is a simple software which does the heavy lifting for you in creating a face-swapped video. Of course, the software with that much power comes with a ton of responsibility and the responsibility falls on the shoulders of the users who are going to use it to create creative videos. Use it carefully and have fun. Tell us what do you think about this software in the comments below.

DeepFaceLabDeepfakeWindows

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (12)

Kaushal

Works as an in-house Writer at TechWiser and focuses on the latest smart consumer electronics. Closely follows the latest trends in consumer IoT and how it affects our daily lives. You can follow him on Twitter. Yes, he sometimes speaks in Third Person.

How to Use DeepFaceLab on Windows to Create Your First Deepfake? - TechWiser (2024)

FAQs

What is the best deepfake software for Windows? ›

8 Best Open Source Deepfake Software for Realistic Illusions
  • FaceSwap is a free deep learning tool that you can use to recognize and swap faces. ...
  • DeepFaceLive is a real-time face-swapping tool for video calls and PC streaming. ...
  • DeepFaceLab is a leading framework for face-swapping.
Jul 19, 2024

Is DeepFaceLab the leading software for creating deepfakes? ›

DeepFaceLab is currently the world's leading software for creating deepfakes, with over 95% of deepfake videos created with DeepFaceLab. DeepFaceLab is an open-source deepfake system that enables users to swap the faces on images and on video.

How to create deepfake technology? ›

Creating Deepfakes

Preprocessing: Use video editing software to trim the footage and extract the frames that will be used to train the deepfake model. Training the Model: Use a deep learning framework like TensorFlow or PyTorch to train a generative adversarial network (GAN).

Is deepfake tech illegal? ›

Deepfake's legal standing is tricky and changing. This harmful content is not intrinsically outlawed but can breach the law. This is especially true if they infringe on privacy, intellectual property, or involve defamation, harassment, or fraud. The tricky part is that current laws weren't made with deepfakes in mind.

Can you go to jail for deepfakes? ›

Indiana, Texas, and Virginia are among the states that have made the creation of nonconsensual deepfakes punishable by jail time. Many states, however, don't yet have laws that make the creation or distribution of deepfakes illegal, or give victims the right to sue.

Why is deepfake banned? ›

Academics have raised concerns about the potential for deep fakes to be used to promote disinformation and hate speech, and interfere with elections. The information technology industry and governments have responded with recommendations to detect and limit their use.

Is DeepFace free? ›

Open Source Face Recognition

This means that you are completely free to use it for both individual and commercial purposes.

Is DeepFaceLab.exe safe? ›

We have scanned the file and URLs associated with this software program in more than 50 of the world's leading antivirus services; no possible threat has been detected.

Is downloading deepfakes illegal? ›

Is it illegal to download deepfakes? Downloading deepfakes isn't universally illegal but becomes so when the content violates laws, such as p*rnographic deepfakes created without the consent of the individual featured. Furthermore, downloading copyrighted material can lead to accusations of copyright infringement.

Is there a free deepfake maker? ›

Yes, indeed! Wavel AI is committed to democratizing deepfake creation. Our Online Deepfake Maker is entirely free, allowing users to explore and express their creativity without any financial constraints.

How hard is it to make deepfakes? ›

Creating a deepfake is a complex process that relies on the use of artificial intelligence algorithms, specifically those focused on deep learning. These algorithms analyze thousands of images and videos to learn how to mimic a person's facial expressions, movements, and voice.

What software is used to create deepfakes? ›

Yes, there are many deepfake apps that you can use free of cost. Some of the most popular ones include Reface, Wombo, FaceApp, and more.

What are the system 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.

Do you need a good PC for deepfake? ›

If possible, make sure your have 8 GB of RAM in order to run Deadeye Deepfake Simulacrum to its full potential. An Intel Core i5-4400E CPU is required at a minimum to run Deadeye Deepfake Simulacrum. Deadeye Deepfake Simulacrum will run on PC system with Windows: 7 SP1+, 8, 10, 64-bit versions only and upwards.

How to access deep fake? ›

How to Use Deepfakesweb. Creating a deepfake video with Deepfakesweb is surprisingly straightforward. Here's how it works: Upload Videos The first step is to upload two videos: the source video, which contains the face we want to swap out, and the target video, which has the face we want to insert.

How to use deepfake AI for free? ›

How do you deepfake videos for free?
  1. Choosing your Source and Target Videos: The source video is the video featuring the face you want to insert into the target video.
  2. Extracting Frames and Facial Data: This step involves breaking down your source and target videos into individual frames and identifying facial data.

Top Articles
2008 BMW R1200 GS For Sale in Grantville, PA. Lot #58736***
2024 Porsche Macan Base For Sale in Homestead, FL Lot #61233***
# كشف تسربات المياه بجدة: أهمية وفوائد
Your Blog - Sheri Blonde
Bez.talanta Leaks
Britley Ritz - K99.1FM
Arre St Wv Srj
United Center: Home of the Chicago Bulls & Chicago Blackhawks - The Stadiums Guide
True Or False Security Is A Team Effort
Cookie Clicker The Advanced Method
Bomei Massage
National Weather Denver Co
Comcast Business Sign In
Fragments Of Power Conan Exiles
Video Program: Intermediate Rumba
Bearpaws Tropical Weather
Craigslist Folding Table
When Is Lana Rhoades’ Baby Due Date? Baby Daddy, Bump, And More
Post Crescent Obituary
Tina's Nails Stanwood
Caldwell Idaho Craigslist
Gay Cest Com
Old Navy Student Discount Unidays
Winta Zesu Net Worth
Jen Chapin Gossip Bakery
Webmail.unt.edu
8 Farmhouse Classroom Essentials
South Bend Tribune Online
Milwaukee Nickname Crossword Clue
Don Wallence Auto Sales Reviews
Apple Watch 9 vs. 10 im Vergleich: Unterschiede & Neuerungen
Eromancer Kemono Party
Davis Fire Friday live updates: Community meeting set for 7 p.m. with Lombardo
Cece Rose Facial
Ludwig Nutsac
Wisconsin Volleyball Team Leaked Pictures And Videos
Journal articles: 'State of New York and the Military Society of the War of 1812' – Grafiati
Studentvue Paramount
Sound Ideas, TAKE, CARTOON - WHISTLE TAKE/Image Gallery
Inland Empire Heavy Equipment For Sale By Owner
18006548818
Sam's Club Gas Price Hilliard
Jennifer Brabson Cleek
Information on Fluorinated Waxes – FasterSkier.com
How To Delete Jackd Account
Smoque Break Rochester Indiana
Sound Of Freedom Showtimes Near Wellborne Cinema
Tillamook Headlight Herald Obituaries
Equine Trail Sports
Was genau ist eine pillow princess?
Craig List El Paso Tx
26200 E 64Th Ave
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5923

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.