Deeplearning - Ai Deeplearning - Ai
Deeplearning - Ai Deeplearning - Ai
DeepLearning.AI makes these slides available for educational purposes. You may not use or
distribute these slides for commercial purposes. You may make copies of these slides and
use or distribute them for educational purposes as long as you cite DeepLearning.AI as the
source of the slides.
Take average
Generator of the weights
Generator Generator
Generator
Generator
Generator
Generator at
different iterations
Main Improvements: (1) Stability
No averaging
Exponential
averaging
Use moving average for
smoother results
Hair color/style →
← Glasses
Intermediate StyleGAN
noise: w Generator
Traditional architecture
StyleGAN architecture
Progressive Growing
● How to implement it
Progressive Growing
Latent Latent Latent
G 4x4 4x4 4x4
8x8
1024x1024
Reals Reals
... Reals
D 1024x1024
4x4
4x4 8x8 4x4
Training progress
Based on: https://arxiv.org/abs/1710.10196
Progressive Growing in Action
Upsample 2x
99% 1%
Conv 32x32
Upsample 2x
50% 50%
Conv 32x32
Upsample 2x
1% 99%
Conv 32x32
Upsample 2x
Conv 32x32
Downsample 0.5x
Conv 32x32
Conv 16x16
...
Real/Fake
Based on: https://arxiv.org/abs/1710.10196
Progressive Growing: Discriminator
Downsample 0.5x
Conv 32x32
Conv 16x16
...
Real/Fake
Based on: https://arxiv.org/abs/1710.10196
Progressive Growing in Context
4x4
8x8
16x16
...
1024x1024
4x4 Upsample
8x8 Convolution
16x16 Convolution
...
1024x1024
FC
Mapping Network
FC
FC
FC
FC
FC
FC
FC
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
Mapping
AdaIN
Network
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Convolution
FC FC
AdaIN
Convolution
AdaIN
Convolution
FC FC
AdaIN
Convolution
AdaIN
Convolution
AdaIN
Tabby
Cat
Tuxedo
Cat
Style Mixing
Tabby
Cat
Tuxedo
Cat
Style Mixing in Context
Source B
Source A
Coarse
layers