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
Exploring Deepfakes
Exploring Deepfakes

Exploring Deepfakes: Deploy powerful AI techniques for face replacement and more with this comprehensive guide

eBook
$9.99 $31.99
Paperback
$39.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Colour book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Exploring Deepfakes

Surveying Deepfakes

Understanding deepfakes begins with understanding where they came from and what they can do. In this chapter, we’ll begin to explore deepfakes and their operation. We will go through the basics of what makes a deepfake work, talking about the differences between a generative auto-encoder and a generative adversarial network (GAN). We will examine their usTo PD: es in media, education, and advertising. We’ll investigate their limitations and consider how to plan and design your deepfakes to avoid the common pitfalls. Finally, we’ll examine existing deepfake software and discuss what each kind can do.

We’ll cover this in the following sections:

  • Introducing deepfakes
  • Exploring the uses of deepfakes
  • Discovering how deepfakes work
  • Assessing the limitations of generative AI
  • Looking at existing deepfake software

Introducing deepfakes

The name deepfake comes from a portmanteau of “deep”, referring to deep learning, and “fake,” referring to the fact that the images generated are not genuine. The term first came into use on the popular website Reddit, where the original author released several deepfakes of adult actresses with other women’s faces artificially applied to them.

Note

The ethics of deepfakes are controversial, and we will cover this in more depth in Chapter 2, Examining Deepfake Ethics and Dangers.

This unethical beginning is still what the technology is most known for, but it’s not all that it can be used for. Since that time, deepfakes have moved into movies, memes, and more. Tom Cruise signed up for Instagram only after “Deep Tom Cruise” beat him to it. Steve Buscemi has remarked to Stephen Colbert that he “never looked better” when his face was placed on top of Jennifer Lawrence’s and a younger version of Bill Nighy was deepfaked onto his own older self for a news clip from the “past” in the movie Detective Pikachu.

In this book, we will be taking a fairly narrow view of what deepfaking is, so let’s define it now. A deepfake is the use of a neural network trained on two faces to replace one face with another. There are other technologies to swap faces that aren’t deepfakes, and there are generative AIs that do other things besides swapping faces but to include all of those in the term just muddies the water and confuses the issue.

Exploring the uses of deepfakes

The original use of Deepfakes might be the one that required the least amount of imagination. Putting one person’s face on another’s person has many different uses in various fields. Please don’t consider the ideas here as the full extent of the capabilities of deepfakes – someone is bound to imagine something new!

Entertainment

Entertainment is the first area that comes to mind for most people when they consider the usage of deepfakes. There are two main areas of entertainment in which I see deepfakes playing a significant role: narrative and parody.

Narrative

The utility of deepfakes in movies is obvious. Imagine an actor’s face being superimposed onto their stunt double or an actor who becomes unavailable being replaced by another performer without any changes to the faces in the final movie.

While deepfakes may not seem good enough, deepfakes are already being used in Hollywood and other media today – from Detective Pikachu, which used deepfakes to de-age Bill Nighy, to For All Mankind, which used it to put actors face to face with Ronald Reagan. Agencies and VFX shops are all examining how to use deepfakes in their work.

These techniques are not unique to deepfakes. CGI (in this book, referring to 3D graphics) face replacements have been used in many movies. However, using CGI face replacement is expensive and complicated, requiring filming to be done in particular ways with lots of extra data captured to be used by the artists to get the CGI face to look good in the final scene. This is an art more than a science and requires extensive skills and knowledge to accomplish. Deepfakes solve many of these problems making new forms of face replacements possible.

Making a deepfake requires no special filming techniques (although some awareness will make the process smoother). Deepfakes also require very little attention or skill compared to CGI face replacements. This makes it ideal for lower-cost face replacements, but it can also be higher-quality since the AI accounts for details that even the most dedicated artist can’t recreate.

Parody

Parody is an extremely popular form of social criticism and forms the basis for entire To PD: movies, TV shows, and other forms of media. Parody is normally done by professional impersonators. In some cases, those impersonators look (or can be made to look) similar to the person they’re impersonating. Other times, there is a reliance on their performance to make the impersonation clear.

Deepfakes provide an opportunity to change the art of parody wherein the impersonator can be made to look like the individual being parodied via a deepfake instead of by chance of birth. By removing the attention from basic appearance, deepfakes allow the focus to be placed directly on the performance itself.

Deepfakes also enable a whole new form of parody in which normal situations can become parodic simply due to the changed face. This particular form becomes humorous due to the distinct oddity of very different faces, instead of an expected swap.

Figure 1.1 – Steve Buscemi as Jennifer Lawrence by birbfakes

Figure 1.1 – Steve Buscemi as Jennifer Lawrence by birbfakes

Note

This image is included with the kind permission of its original creator, birbfakes. You can view the original video here: https://youtu.be/r1jng79a5xc.

Video games

Video games present an interesting opportunity when it comes to deepfakes. The idea here is that a computer-generated character could be deepfaked into a photorealistic avatar. This could be done for any character in the game, even the player’s character. For example, it would be possible to make a game in which, when the player’s character looked into a mirror, they would see their own face looking back at them. Another possibility would be to replace a non-player character with a deepfake of the original actor, allowing for a far more realistic appearance without making a complete 3D clone of the actor.

Education

Education could also benefit from deepfakes. Imagine if your history class had a video of Abraham Lincoln himself reading the Gettysburg address. Or a corporate training video in which the entire video is hosted by the public mascot (who may not even be a real person) without having to resort to costumes or CGI. It could even be used to allow multiple videos or scenes filmed at significantly different times to appear to be more cohesive by appearing to show the actor at the same time.

Many people are very visual learners and seeing a person “come alive” can really bring the experience home. Bringing the pre-video past to life using deepfakes enables a whole new learning experience. One example of this is the Dalí Museum, which created a series of videos of Salvador Dalí talking to guests. This was done by training a deepfake model on an actor to put Dalí’s face on the videos. Once the model was trained and set up, they were able to convert many videos, saving a lot of time and effort compared to a CGI solution.

Advertisements

Advertising agencies are always looking for the newest way to grab attention and deepfakes could be a whole new way to catch viewers’ attention. Imagine if you walked past a clothing store, you stopped to look at an item of clothing in the window, and suddenly the screen beside the item showed a video of an actor wearing the item but with your face, allowing you to see how the item would look on you. Alternatively, a mascot figure could be brought to life in a commercial. Deepfakes offer a whole new tool for creative use, which can grab attention and provide whole new experiences in advertising.

Now that we’ve got some idea of a few potential uses for deepfakes, let’s take a quick look under the hood and see how they work.

Discovering how deepfakes work

Deepfakes are a unique variation of a generative auto-encoder being used to generate the face swap. This requires a special structure, which we will explain in this section.

Generative auto-encoders

The particular type of neural network that regular deepfakes use is called a generative auto-encoder. Unlike a Generative Adversarial Network (GAN), an auto-encoder does not use a discriminator or any “adversarial” techniques.

All auto-encoders work by training a collection of neural network models to solve a problem. In the case of generative auto-encoders, the AI is used to generate a new image with new details that weren’t in the original image. However, with a normal auto-encoder, the problem is usually something such as classification (deciding what an image is), object identification (finding something inside an image), or segmentation (identifying different parts of an image). To do this, there are two types of models used in the autoencoder – the encoder and decoder. Let’s see how this works.

The deepfake training cycle

The training cycle is a cyclical process in which the model is continuously trained on images until stopped. The process can be broken down into four steps:

  • Encode faces into smaller intermediate representations.
  • Decode the intermediate representations back into faces.
  • Calculate the loss of (meaning, the difference between) the original face and the output of the model.
  • Modify (backpropagate) the models toward the correct answer.
Figure 1.2 – Diagram of the training cycle

Figure 1.2 – Diagram of the training cycle

In more detail, the process unfolds as follows:

  • The encoder’s job is to encode two different faces into an array, which we call the intermediate representation. The intermediate representation is much smaller than the original image size, with enough space to describe the lighting, pose, and expression of the faces. This process is similar to compression, where unnecessary data is thrown out to fit the data into a smaller space.
  • The decoder is actually a matched pair of models, which turn the intermediate representation back into faces. There is one decoder for each of the input faces, which is trained only on images of that one person’s face. This process tries to create a new face that matches the original face that was given to the encoder and encoded into the intermediate representation.
Figure 1.3 – Encoder and decoder

Figure 1.3 – Encoder and decoder

  • Loss is a score that is given to the auto-encoder based on how well it recreates the original faces. This is calculated by comparing the original image to the output from the encoder-decoder process. This comparison can be done in many ways, from a strict difference between them or something significantly more complicated that includes human perception as part of the calculation. No matter how it’s done, the result is the same: a number from 0 to 1, with 0 being the score for the model returning the exact same image and 1 being the exact opposite or the image. Most of the numbers will fall between 0 to 1. However, a perfect reconstruction (or its opposite) is impossible.

Note

The loss is where an auto-encoder differs from a GAN. In a GAN, the comparison loss is either replaced or supplemented with an additional network (usually an auto-encoder itself), which then produces a loss score of its own. The theory behind this structure is that the loss model (called a discriminator) can learn to get better at detecting the output of the generating model (called a generator) while the generator can learn to get better at fooling the discriminator.

  • Finally, there is backpropagation, a process in which the models are adjusted by following the path back through both the decoder and encoder that generated the face and nudging those paths toward the correct answer.
Figure 1.4 – Loss and backpropagation

Figure 1.4 – Loss and backpropagation

Once complete, the whole process starts back over at the encoder again. This continues to repeat until the neural network has finished training. The decision of when to end training can happen in several ways. It can happen when a certain number of repetitions have occurred (called iterations), when all the data has been gone through (called an epoch), or when the results meet a certain loss score.

Why not GANs?

GANs are one of the current darlings of generative networks. They are extremely popular and used extensively, being used particularly for super-resolution (intelligent upscaling), music generation, and even sometimes deepfakes. However, there are some reasons that they’re not used in all deepfake solutions.

GANs are popular due to their “imaginative” nature. They learn through the interaction of their generator and discriminator to fill in gaps in the data. Because they can fill in missing pieces, they are great at reconstruction tasks or at tasks where new data is required.

The ability of a GAN to create new data where it is missing is great for numerous tasks, but it has a critical flaw when used for deepfakes. In deepfakes, the goal is to replace one face with another face. An imaginative GAN would likely learn to fill the gaps in the data from one face with the data from the other. This leads to a problem that we call “identity bleed” where the two faces aren’t swapped properly; instead, they’re blended into a face that doesn’t look like either person, but a mix of the two.

This flaw in a GAN-created deepfake can be corrected or prevented but requires much more careful data collection and processing. In general, it’s easier to get a full swap instead of a blending by using a generative auto-encoder instead of a GAN.

The auto-encoder structure

Another name for an auto-encoder is an “hourglass” model. The reason for this is that each layer of an encoder is smaller than the layer before it while each layer of a decoder is larger than the one before. Because of this, the auto-encoder figure starts out large at the beginning, shrinks toward the middle, and then widens back out again as it reaches the end:

Figure 1.5 – Hourglass structure of an autoencoder

Figure 1.5 – Hourglass structure of an autoencoder

While these methods are flexible and have many potential uses, there are limitations. Let’s examine those limitations now.

Assessing the limitations of generative AI

Generative AIs like those used in deepfakes are not a panacea and actually have some significant limitations. However, by knowing about these limitations, they can generally be worked around or sidestepped with careful design.

Resolution

Deepfakes are limited in the resolution that they can swap. This is a hardware and time limitation: greater hardware and more time can provide higher resolution swaps. However, this is not a 1:1 linear growth. Doubling the resolution (from, say, 64x64 to 128x128) actually quadruples the amount of required VRAM – that is, the memory that a GPU has direct access to – and the time necessary to train is expanded a roughly equivalent amount. Because of this, resolution is often a balancing act, where you’ll want to make the deepfake the lowest resolution you can without sacrificing the results.

Training required for each face pair

To provide the best results, traditional deepfakes require that you train on every face pair that you wish to swap. This means that if you wanted to swap your own face with two of your friends, you’d have to train two separate models. This is because each model has one encoder and two decoders, which are trained only to swap the faces they were given.

There is a workaround to some multi-face swaps. In order to swap additional faces, you could write your own version with more than two decoders allowing you to swap additional faces. This is an imperfect solution, however, as each decoder takes up a significant amount of VRAM, requiring you to balance the number of faces carefully.

It may be better to simply train multiple pairs. By splitting the task up on multiple computers, you could train multiple models simultaneously, allowing you to create many face pairs at once.

Another option is to use a different type of AI face replacement. First Order Model (which is covered in the Looking at existing deepfake software section of this chapter) uses a different technique: instead of a paired approach, it uses AI to animate an image to match the actions of a replacement. This solution removes the need to retrain on each face pair, but comes at the cost of greatly reduced quality of the swap.

Training data

Generative AIs requires a significant amount of training data to accomplish their tasks. Sometimes, finding sufficient data or data of a high-enough quality is not possible. For example, how would someone create a deepfake of William Shakespeare when there are no videos or photographs of him? This is a tricky problem but can be worked around in several ways. While it is unfortunately impossible to create a proper deepfake of England’s greatest playwright, it would be possible to use an actor who looks like his portraits and then deepfake that actor as Shakespeare.

Tip

We will cover more on how to deal with poor or insufficient data in Chapter 3, Mastering Data.

Finding sufficient data (or clever workarounds) is the most difficult challenge that any data scientist faces. Occasionally, there simply is no way to get sufficient data. This is when you might need to re-examine the video to see whether there is another way to shoot it to avoid the lack of data, or you might try using other sources of similar data to patch the gaps. Sometimes, just knowing the limitations in advance can prevent a problem – other times, a workaround in the last minutes may be enough to save a project from failure.

While everyone should know the data limitations, knowing the limitations of the process is only for experts. If you are only looking to use deepfakes, you’ll probably use existing software. Let’s explore those next.

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/.

Summary

The technology of deepfakes is not itself anything new or unique. These techniques existed in various forms long before they were applied to face-swapping, but deepfakes have caught public attention in a way that other AI techniques have never really been able to. There is something very visceral about seeing a face where it doesn’t belong, seeing an actor in a role you know that they didn’t play, or seeing your own face doing something you’ve never done.

While the techniques that make up deepfakes have all existed previously on their own, together, they provide completely new possibilities. There are numerous use cases that deepfakes can be applied to, from stunt-double replacement to advertising. The technology is here, and its use will only grow as more and more industries find ways to use it.

There are still limits to the capabilities of generative AI. Knowing what a deepfake cannot do is as important as knowing what it can do. Especially regarding data, knowing how to work around those limitations is key to a quality result.

We’ve given an overview of deepfakes, covering what they are, what they can be used for, how they work, their limitations, and the existing software you can use to make them. In the next chapter, we’ll cover the potential dangers of deepfakes and talk about the ethical questions that the technology brings with it.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand what deepfakes are, their history, and how to use the technology ethically
  • Get well-versed with the workflow and processes involved to create your own deepfakes
  • Learn how to apply the lessons and techniques of deepfakes to your own problems

Description

Applying Deepfakes will allow you to tackle a wide range of scenarios creatively. Learning from experienced authors will help you to intuitively understand what is going on inside the model. You’ll learn what deepfakes are and what makes them different from other machine learning techniques, and understand the entire process from beginning to end, from finding faces to preparing them, training the model, and performing the final swap. We’ll discuss various uses for face replacement before we begin building our own pipeline. Spending some extra time thinking about how you collect your input data can make a huge difference to the quality of the final video. We look at the importance of this data and guide you with simple concepts to understand what your data needs to really be successful. No discussion of deepfakes can avoid discussing the controversial, unethical uses for which the technology initially became known. We’ll go over some potential issues, and talk about the value that deepfakes can bring to a variety of educational and artistic use cases, from video game avatars to filmmaking. By the end of the book, you’ll understand what deepfakes are, how they work at a fundamental level, and how to apply those techniques to your own needs.

Who is this book for?

This book is for AI developers, data scientists, and anyone looking to learn more about deepfakes or techniques and technologies from Deepfakes to help them generate new image data. Working knowledge of Python programming language and basic familiarity with OpenCV, Pillow, Pytorch, or Tensorflow is recommended to get the most out of the book.

What you will learn

  • Gain a clear understanding of deepfakes and their creation
  • Understand the risks of deepfakes and how to mitigate them
  • Collect efficient data to create successful deepfakes
  • Get familiar with the deepfakes workflow and its steps
  • Explore the application of deepfakes methods to your own generative needs
  • Improve results by augmenting data and avoiding overtraining
  • Examine the future of deepfakes and other generative AIs
  • Use generative AIs to increase video content resolution
Estimated delivery fee Deliver to Taiwan

Standard delivery 10 - 13 business days

$12.95

Premium delivery 5 - 8 business days

$45.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 28, 2023
Length: 192 pages
Edition : 1st
Language : English
ISBN-13 : 9781801810692
Category :
Languages :
Concepts :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Colour book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Taiwan

Standard delivery 10 - 13 business days

$12.95

Premium delivery 5 - 8 business days

$45.95
(Includes tracking information)

Product Details

Publication date : Mar 28, 2023
Length: 192 pages
Edition : 1st
Language : English
ISBN-13 : 9781801810692
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 141.97
Machine Learning Model Serving Patterns and Best Practices
$41.99
Exploring Deepfakes
$39.99
The Regularization Cookbook
$59.99
Total $ 141.97 Stars icon
Banner background image

Table of Contents

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

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(6 Ratings)
5 star 66.7%
4 star 16.7%
3 star 16.7%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Dror Apr 29, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Unprecedented progress in deep learning in recent years has opened the door to a variety of mind-blowing technologies, such as generative AI and the technology behind deepfake creation. Interestingly, despite its controversial associations, deepfake creation is a fascinating technology with a variety of ethical applications in the areas of image processing and computer graphics.This book is a unique and practical primer on the technology enabling deepfakes. While the focus of the book is on face replacement as a guiding application, it offers a clear overview of the technology, the principles and tools supporting it, and its applications. It also openly discusses the potential dangers behind deepfake creation, and offers a clear set of guidelines for creating ethical deepfakes.The book uses a modern and effective set of tools, including PyTorch, OpenCV, and the open-source Faceswap software. A basic understanding of machine learning and deep learning concepts can be helpful to get the most out of this book, as well as some familiarity with the Python programming language. In addition, the accompanying GitHub repo is useful and well-organized.This book can benefit anyone interested in learning about deepfake creation, the technology behind it, and its ethical applications. Academics, practitioners, content creators and developers can all greatly benefit from this unique and well-written guide.Highly recommended!
Amazon Verified review Amazon
Nikunj G. Jun 24, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Applying Deepfakes: A Comprehensive Guide to Creativity and Ethics" is an exceptional and groundbreaking book that takes readers on a captivating journey into the world of deepfake technology. With a wealth of knowledge and expertise, the authors expertly navigate the complex realm of deepfakes, providing insightful explanations and practical guidance for understanding and creating these remarkable digital creations.From the very beginning, the book captivates readers by exploring various real-world applications of deepfakes, setting the stage for a comprehensive exploration of the deepfake pipeline. The authors emphasize the importance of meticulous data selection and preparation, ensuring readers have the necessary foundation for successful deepfake projects. As the book progresses, it dives into the intricacies of the deepfake workflow, unraveling each step with meticulous detail and illuminating the wide range of possibilities for utilizing deepfake methods in various generative contexts.What truly sets this book apart is its balanced approach to ethics. While addressing the potential risks and controversies surrounding deepfakes, the authors also shed light on their immense value in educational and artistic realms, such as video game avatars and filmmaking. By presenting both sides of the ethical debate, readers are empowered to appreciate the creative potential and ponder the ethical implications of deepfake technology.As the book draws to a close, readers emerge with a profound understanding of deepfakes—what they are, how they function, and how to skillfully apply these techniques to their own projects. Moreover, the book provides a tantalizing glimpse into the future, exploring the potential impact of deepfakes and other generative AI technologies on video content resolution and beyond."Applying Deepfakes: A Comprehensive Guide to Creativity and Ethics" is a must-have resource for AI developers, data scientists, and anyone seeking to delve into the captivating realm of deepfakes and related technologies. While some familiarity with Python programming language and tools like OpenCV, Pillow, Pytorch, or Tensorflow is recommended, the authors' clear explanations and illustrative examples make the book accessible to both novices and experienced practitioners alike. In summary, this enlightening and thought-provoking book serves as an invaluable companion, offering a wealth of knowledge and guidance while navigating the complex terrain of deepfakes and their ethical considerations.
Amazon Verified review Amazon
Deep P. Apr 20, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Exploring DeepFakes" by Packt Publication is a book that aims to introduce readers to the concept of deep fakes and the techniques used to create them. The book covers topics such as computer vision, deep learning, and natural language processing, as well as the ethics and legal considerations surrounding deep-fake technology.One of the strengths of this book is that it provides a comprehensive overview of the subject matter. It explains the technical aspects of deep-fake creation clearly and concisely, making it accessible to readers who may not have a background in computer science. The book also provides practical examples and step-by-step instructions, which can be useful for experimenting with deep-fake technology.Another strength of the book is its focus on the ethical and legal implications of deep fakes. The authors provide a balanced and nuanced discussion of the potential dangers of deep-fake technology, including its potential to spread misinformation and undermine trust in media. They also discuss the legal frameworks around deep-fake technology and the challenges of regulating this rapidly evolving field.The Book also covers the practical concepts of how to use the deep-fake and Generative AI Algorithms on Images and Videos, also the future of generative AI.Overall, "Exploring DeepFakes" by Packt Publication is a useful introduction to deep-fake technology. It provides a balanced and comprehensive overview of the subject matter, and its practical examples and step-by-step instructions make it a valuable resource for those looking to experiment with deep-fake technology.
Amazon Verified review Amazon
Yiqiao Yin Apr 04, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Applying Deepfakes: A Comprehensive Guide to Creativity and Ethics" is a groundbreaking book that provides an insightful and thorough examination of the fascinating world of deepfakes. The authors, who are experienced in the field, adeptly guide readers through the complex process of understanding and creating deepfakes. Their intuitive approach to explaining the inner workings of deepfake models, as well as their expert guidance on the entire process from finding and preparing faces to training models and executing the final face swap, make this book a must-read for AI developers, data scientists, and anyone interested in deepfakes or generative image data techniques.The book begins with a discussion on various use cases for face replacement before diving into the intricacies of building a deepfake pipeline. The authors emphasize the importance of carefully selecting and preparing input data, providing readers with simple concepts and guidelines to ensure the success of their deepfake projects. As the book progresses, it delves into the deepfake workflow, covering each step in detail and exploring how deepfake methods can be applied to a wide range of generative needs.However, the authors do not shy away from addressing the ethical concerns and controversies surrounding deepfakes. They provide a balanced analysis of the potential risks and issues associated with the technology, while also highlighting its value in various educational and artistic applications, such as video game avatars and filmmaking. This balanced approach allows readers to appreciate both the creative potential and the ethical implications of deepfakes.As the book concludes, readers will have gained a clear understanding of what deepfakes are, how they work, and how to apply these techniques to their own needs. The book also offers a glimpse into the future of deepfakes and other generative AI technologies, examining their potential impact on video content resolution and beyond."Applying Deepfakes: A Comprehensive Guide to Creativity and Ethics" is ideal for AI developers, data scientists, and anyone looking to expand their knowledge of deepfakes or related technologies. A working knowledge of Python programming language and basic familiarity with OpenCV, Pillow, Pytorch, or Tensorflow is recommended to get the most out of this enlightening and informative book. Overall, this book serves as an invaluable resource for those seeking to harness the power of deepfakes while navigating the ethical considerations associated with this cutting-edge technology.
Amazon Verified review Amazon
Om S Mar 28, 2023
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
"Exploring Deepfakes" is a comprehensive and informative book that delves into the world of deepfake technology. The authors have done an excellent job of explaining what deepfakes are and how they work, as well as exploring the various applications and implications of this technology.The book covers everything from the history of deepfakes to the techniques used to create them. It provides detailed instructions on how to collect and process data, extract faces from videos, and train a deepfake model. The authors also highlight the ethical considerations associated with deepfakes and provide practical guidance on how to use this technology responsibly.One of the book's strengths is its focus on the potential applications of deepfakes beyond their negative connotations. The authors provide numerous examples of how this technology can be used for entertainment, education, and even medical purposes. They also explore the ways in which deepfakes can be used to generate new image data and improve the resolution of video content.Overall, "Applying Deepfakes" is a valuable resource for AI developers, data scientists, and anyone interested in learning more about this emerging technology. The book assumes a working knowledge of Python programming language and basic familiarity with OpenCV, Pillow, Pytorch, or Tensorflow. However, the authors provide clear explanations and examples, making the material accessible to beginners as well.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela