About the Author |
|
ix | |
About the Technical Reviewer |
|
xi | |
Acknowledgments |
|
xiii | |
Introduction |
|
xv | |
|
Chapter 1 The Basics of Deep Learning |
|
|
1 | (34) |
|
|
2 | (2) |
|
|
4 | (10) |
|
The Multilayer Perceptron |
|
|
14 | (2) |
|
|
16 | (1) |
|
Stochastic Gradient Descent |
|
|
17 | (1) |
|
PyTorch and Deep Learning |
|
|
18 | (3) |
|
|
21 | (5) |
|
|
26 | (1) |
|
|
27 | (2) |
|
|
29 | (1) |
|
|
30 | (3) |
|
|
33 | (2) |
|
Chapter 2 Unleashing Generative Modeling |
|
|
35 | (34) |
|
Unsupervised Learning with Autoencoders |
|
|
36 | (7) |
|
Extracting Features with Convolution |
|
|
43 | (7) |
|
The Convolutional Autoencoder |
|
|
50 | (5) |
|
Generative Adversarial Networks |
|
|
55 | (8) |
|
|
63 | (5) |
|
|
68 | (1) |
|
Chapter 3 Exploring the Latent Space |
|
|
69 | (36) |
|
Understanding What Deep Learning Learns |
|
|
70 | (1) |
|
Deep Learning Function Approximation |
|
|
71 | (4) |
|
The Limitations of Calculus |
|
|
75 | (1) |
|
Deep Learning Hill Climbing |
|
|
76 | (4) |
|
|
80 | (6) |
|
Building a Variational Autoencoder |
|
|
86 | (4) |
|
Learning Distributions with the VAE |
|
|
90 | (9) |
|
Variability and Exploring the Latent Space |
|
|
99 | (3) |
|
|
102 | (3) |
|
Chapter 4 GANs, GANs, and More GANs |
|
|
105 | (30) |
|
Feature Understanding and the DCGAN |
|
|
106 | (6) |
|
Unrolling the Math of GANs |
|
|
112 | (4) |
|
Resolving Distance with WGAN |
|
|
116 | (4) |
|
Discretizing Boundary-Seeking GANs |
|
|
120 | (4) |
|
Relativity and the Relativistic GAN |
|
|
124 | (5) |
|
|
129 | (4) |
|
|
133 | (2) |
|
Chapter 5 Image to Image Content Generation |
|
|
135 | (32) |
|
Segmenting Images with a UNet |
|
|
136 | (6) |
|
Uncovering the Details of a UNet |
|
|
142 | (3) |
|
Translating Images with Pix2Pix |
|
|
145 | (6) |
|
Seeing Double with the DualGAN |
|
|
151 | (5) |
|
Riding the Latent Space on the BicycleGAN |
|
|
156 | (5) |
|
Discovering Domains with the DiscoGAN |
|
|
161 | (4) |
|
|
165 | (2) |
|
Chapter 6 Residual Network GANs |
|
|
167 | (28) |
|
Understanding Residual Networks |
|
|
168 | (6) |
|
Cycling Again with CycleGAN |
|
|
174 | (6) |
|
Creating Faces with StarGAN |
|
|
180 | (4) |
|
Using the Best with Transfer Learning |
|
|
184 | (5) |
|
Increasing Resolution with SRGAN |
|
|
189 | (4) |
|
|
193 | (2) |
|
Chapter 7 Attention Is All We Need! |
|
|
195 | (28) |
|
|
196 | (3) |
|
Understanding the Types of Attention |
|
|
199 | (2) |
|
|
201 | (4) |
|
Augmenting Convolution with Attention |
|
|
205 | (4) |
|
Lipschitz Continuity in GANs |
|
|
209 | (1) |
|
What Is Lipschitz Continuity? |
|
|
209 | (5) |
|
Building the Self-Attention GAN |
|
|
214 | (4) |
|
|
218 | (4) |
|
|
222 | (1) |
|
Chapter 8 Advanced Generators |
|
|
223 | (32) |
|
Progressively Growing GANs |
|
|
224 | (6) |
|
Styling with StyleGAN Version 2 |
|
|
230 | (1) |
|
|
231 | (1) |
|
|
232 | (2) |
|
Frechet Inception Distance |
|
|
234 | (2) |
|
|
236 | (6) |
|
DeOldify and the New NoGAN |
|
|
242 | (5) |
|
Colorizing and Enhancing Video |
|
|
247 | (2) |
|
Being Artistic with ArtLine |
|
|
249 | (4) |
|
|
253 | (2) |
|
Chapter 9 Deepfakes and Face Swapping |
|
|
255 | (32) |
|
Introducing the Tools for Face Swapping |
|
|
257 | (3) |
|
Gathering the Swapping Data |
|
|
260 | (3) |
|
Downloading YouTube Videos for Deepfakes |
|
|
263 | (4) |
|
Understanding the Deepfakes Workflow |
|
|
267 | (2) |
|
|
269 | (2) |
|
Sorting and Trimming Faces |
|
|
271 | (3) |
|
Realigning the Alignments File |
|
|
274 | (2) |
|
Training a Face Swapping Model |
|
|
276 | (3) |
|
Creating a Deepfake Video |
|
|
279 | (3) |
|
|
282 | (2) |
|
|
284 | (3) |
|
Chapter 10 Cracking Deepfakes |
|
|
287 | (13) |
|
Understanding Face Manipulation Methods |
|
|
288 | (3) |
|
Techniques for Cracking Fakes |
|
|
291 | (1) |
|
|
292 | (2) |
|
|
294 | (2) |
|
|
296 | (3) |
|
Identifying Fakes in Deepfakes |
|
|
299 | (1) |
Conclusion |
|
300 | (3) |
Appendix A Running Google Colab Locally |
|
303 | (4) |
Appendix B Opening a Notebook |
|
307 | (2) |
Appendix C Connecting Google Drive and Saving |
|
309 | (4) |
Index |
|
313 | |