Training a Deepfake Model
Training a deepfake model is the most important part of creating a deepfake. It is where the AI actually learns about the faces from your data and where the most interesting neural network operations take place.
In this chapter, we’ll look into the training code and the code that actually creates the AI models. We’ll look at the submodules of the neural network and how they’re put together to create a complete neural network. Then we’ll go over everything needed to train the network and end up with a model ready to swap two faces.
We’ll cover the following topics in this chapter:
- Understanding convolutional layers
- Getting hands-on with AI
- Exploring the training code
By the end of this chapter, we’ll have designed our neural networks and built a training pipeline capable of teaching them to swap faces.