Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Exploring Deepfakes

You're reading from   Exploring Deepfakes Deploy powerful AI techniques for face replacement and more with this comprehensive guide

Arrow left icon
Product type Paperback
Published in Mar 2023
Publisher Packt
ISBN-13 9781801810692
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Matt Tora Matt Tora
Author Profile Icon Matt Tora
Matt Tora
Bryan Lyon Bryan Lyon
Author Profile Icon Bryan Lyon
Bryan Lyon
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

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

To get the most out of this book

This book is designed to build knowledge as you read through the chapters. If you’re starting with no background knowledge of deepfakes, then we suggest you start at the beginning. If you want to skip straight to the code, then you’ll want to look at Part 2 (though we hope you’ll give Part 1 a peruse once you’re ready). If you only care about what you can do with the techniques moving forward, then check out Part 3 (but I promise that the earlier parts have some juicy nuggets of information).

We use Python for all code examples in this book. If you know Python, you should be able to understand all the code samples with the help of the text. If you don’t know Python, then don’t worry! There is a lot of non-code explanation, and even the code includes hands-on explanations of what is going on in it.

All the libraries used in this book are explained when they’re used, but this book should not be considered a guide or in-depth explanation of any of the libraries. Many of these libraries have books of their own dedicated to them, and their use in this book is solely functional.

Software covered in the book

Operating system requirements

Python

Faceswap

Windows, macOS, or Linux

PyTorch

OpenCV

Pillow (PIL Fork)

We use Anaconda (https://www.anaconda.com/) for package management and sandboxing throughout this book. If you want to follow along, we highly recommend you install it from the site listed here. If you would rather use Python virtual environments, you may, but if you do, the instructions in this book will not always work without modification, especially installing the necessary packages. If you choose to use that route, you will have to find the correct version of libraries to install yourself.

If you are using the digital version of this book, we advise you access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Included in each hands-on chapter is a list of exercises. Please don’t take these as directions on what you must do, but consider them as helpers to more completely understand what it is that the code is doing and how you can use the techniques for yourself. They do not have “answers” as they are not really questions; they’re just prompts for you to find new and exciting ways to apply your knowledge.

If you do complete any of the exercises (or come up with something impressive of your own), we’d appreciate it if you would “fork” the book’s repo into your own GitHub account and show the world your accomplishment! We’d love to see what you can do with deepfakes.

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime
Banner background image