Reader small image

You're reading from  Exploring Deepfakes

Product typeBook
Published inMar 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781801810692
Edition1st Edition
Languages
Right arrow
Authors (2):
Bryan Lyon
Bryan Lyon
author image
Bryan Lyon

Bryan Lyon is a developer for Faceswap.
Read more about Bryan Lyon

Matt Tora
Matt Tora
author image
Matt Tora

Matt Tora is a developer for Faceswap.
Read more about Matt Tora

View More author details
Right arrow

Understanding convolutional layers

In this chapter, we’ll finally get into the meat of the neural networks behind deepfakes. A big part of how networks such as these work is a technique called convolutional layers. These layers are extremely important in effectively working with image data and form an important cornerstone of most neural networks.

A convolution is an operation that changes the shape of an object. In the case of neural networks, we use convolutional layers, which iterate a convolution over a matrix and create a new (generally smaller) output matrix. Convolutions are a way to reduce an image in size while simultaneously searching for patterns. The more convolutional layers you stack, the more complicated the patterns that can be encoded from the original image.

Figure 6.1 – An example of a convolution downscaling a full image

Figure 6.1 – An example of a convolution downscaling a full image

There are several details that define a convolutional layer. The first is dimensionality. In our...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Exploring Deepfakes
Published in: Mar 2023Publisher: PacktISBN-13: 9781801810692

Authors (2)

author image
Bryan Lyon

Bryan Lyon is a developer for Faceswap.
Read more about Bryan Lyon

author image
Matt Tora

Matt Tora is a developer for Faceswap.
Read more about Matt Tora