16.03.2021 Views

Advanced Deep Learning with Keras

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4

CGAN is similar to DCGAN except for the additional one-hot vector input. For the

generator, the one-hot label is concatenated with the latent vector before the Dense

layer. For the discriminator, a new Dense layer is added. The new layer is used to

process the one-hot vector and reshape it so that it is suitable for concatenation to

the other input of the succeeding CNN layer:

Figure 4.3.1: The CGAN model is similar to DCGAN except for the one-hot vector, which is used to condition

the generator and discriminator outputs

[ 115 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!