Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Exploring Deepfakes

You're reading from  Exploring Deepfakes

Product type Book
Published in Mar 2023
Publisher Packt
ISBN-13 9781801810692
Pages 192 pages
Edition 1st Edition
Languages
Authors (2):
Bryan Lyon Bryan Lyon
Profile icon Bryan Lyon
Matt Tora Matt Tora
Profile icon Matt Tora
View More author details

Table of Contents (15) Chapters

Preface Part 1: Understanding Deepfakes
Chapter 1: Surveying Deepfakes Chapter 2: Examining Deepfake Ethics and Dangers Chapter 3: Acquiring and Processing Data Chapter 4: The Deepfake Workflow Part 2: Getting Hands-On with the Deepfake Process
Chapter 5: Extracting Faces Chapter 6: Training a Deepfake Model Chapter 7: Swapping the Face Back into the Video Part 3: Where to Now?
Chapter 8: Applying the Lessons of Deepfakes Chapter 9: The Future of Generative AI Index Other Books You May Enjoy

Looking at existing deepfake software

There have been many programs that have risen to fill the niche of deepfaking; however, few of them are still under development or supported. The rapid development of GPU hardware and AI software has led to unique challenges in software development, and many deepfake programs are no longer usable. However, there are still several deepfake software programs and, in this section, we’ll go over the major options.

Important Note

The authors have made every effort to be unbiased in this section, but are among the developers of Faceswap. Faceswap will be covered in more detail in Chapter 4, The Deepfake Workflow, with a walkthrough of the workflow of a deepfake through the Faceswap software.

Faceswap

Faceswap is a Free and Open Source (FOSS) software program for creating deepfakes. It’s released under the GPL3 and can be used by anyone anywhere. It’s written in Python and runs AI on the TensorFlow backend. It supports NVIDIA, AMD, and Apple GPUs for accelerating the machine learning models, or can be run on a CPU at a reduced speed. There are installers for Windows and Linux that can help by installing all the needed libraries and tools inside of a self-contained environment.

It’s available at https://Faceswap.dev/.

DeepFaceLab

Originally a fork of Faceswap, DeepFaceLab is now developed mostly by Ivan Perov. DeepFaceLab is another FOSS software program for deepfakes. It is known for more experimental models and features. There is no GUI, but there are Jupyter Notebooks that can be run in any of the Jupyter environments. There is also a DirectML version, which provides another option for people using Windows. There are fully contained builds that are packaged together into a single compressed file, which provides a fully working package for many operating systems.

It’s available at https://github.com/iperov/DeepFaceLab.

First Order Model

First Order Model works in a fundamentally different way from Faceswap and DeepFaceLab. Instead of swapping a face onto a new video, First Order Model “puppets” the face, making it match the movements of a video but leaving the face the same. Furthermore, it doesn’t require training on each face pair, making it easy to use to make quick deepfakes where you can “animate” a person even with just a single photo of them.

It is important to note that while the First Order Model software is available freely, it is licensed only for non-commercial use: if you want to use it in a commercial context, you’ll need to contact the author for a license. It’s available at https://github.com/AliaksandrSiarohin/first-order-model.

Reface

Reface is yet another method of creating deepfakes. Reface is closed source and proprietary, so we can’t analyze exactly how it works, but it uses a zero-shot learning method like First Order Model to swap faces without requiring training on a pair of swaps. Reface offers apps for Apple iOS and Android and does the swap in the cloud, making it easier to get a quick result, but means that you might not be able to swap the exact clip you want, and licensing may be an issue.

It’s available at https://reface.ai/.

You have been reading a chapter from
Exploring Deepfakes
Published in: Mar 2023 Publisher: Packt ISBN-13: 9781801810692
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}