Generator outputs of StackedGAN

After training the StackedGAN for 10,000 steps, the Generator0 and Generator1 models are saved on files. Stacked together, Generator0 and Generator1 can synthesize fake images conditioned on label and noise codes, z0 and z1.

The StackedGAN generator can be qualitatively validated by:

  1. Varying the discrete labels from 0 to 9 with both noise codes, z0 and z1 sampled from a normal distribution with a mean of 0.5 and standard -deviation of 1.0. The results are shown in Figure 6.2.9. We're able to see that the StackedGAN discrete code can control the digits produced by the generator:
    python3 stackedgan-mnist-6.2.1.py 
    --generator0=stackedgan_mnist-gen0.h5 
    --generator1=stackedgan_mnist-gen1.h5 --digit=0
    python3 stackedgan-mnist-6.2.1.py  ...

Get Advanced Deep Learning with Keras now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.