What this book covers
Chapter 1, Surveying Deepfakes, provides a look into the past and present of deepfakes with a description of how they work and are used.
Chapter 2, Examining Deepfake Ethics and Dangers, provides a look at the sordid history of deepfakes and guidelines on creating ethical deepfakes.
Chapter 3, Mastering Data, teaches you how to get the most from your data, whether you make it yourself or have to find it.
Chapter 4, The Deepfake Workflow, provides a step-by-step walk-through of using Faceswap from the installation to the final output.
Chapter 5, Extracting Faces, is where we begin our hands-on dive into the code of a deepfake by learning how we detect, align, and mask faces for deepfakes.
Chapter 6, Training a Deepfake Model, is where we continue exploring the code as we train a model from scratch, including defining the layers of the model, feeding it images, and updating the model weights.
Chapter 7, Swapping the Face Back into the Video, is where we complete the code analysis with conversion, the process that puts the swapped face back into the original video.
Chapter 8, Applying the Lessons of Deepfakes, teaches you the process of solving hypothetical problems using deepfake techniques.
Chapter 9, The Future of Generative AI, examines where generative AI will move in the future and what limitations they need to overcome.