Skip to Main Content
Advanced Deep Learning with Keras
book

Advanced Deep Learning with Keras

by Rowel Atienza, Neeraj Verma, Valerio Maggio
October 2018
Intermediate to advanced content levelIntermediate to advanced
368 pages
9h 20m
English
Packt Publishing
Content preview from Advanced Deep Learning with Keras

Conditional VAE (CVAE)

Conditional VAE [2] is similar to the idea of CGAN. In the context of the MNIST dataset, if the latent space is randomly sampled, VAE has no control over which digit will be generated. CVAE is able to address this problem by including a condition (a one-hot label) of the digit to produce. The condition is imposed on both the encoder and decoder inputs.

Formally, the core equation of VAE in Equation 8.1.10 is modified to include the condition c:

Conditional VAE (CVAE)

(Equation 8.2.1)

Similar to VAEs, Equation 8.2.1 means that if we want to maximize the output conditioned on c,

, then the two loss terms must be minimized:

  • Reconstruction loss of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Neural Networks with Keras

Hands-On Neural Networks with Keras

Niloy Purkait
Deep Learning with Keras

Deep Learning with Keras

Antonio Gulli, Sujit Pal
Keras Deep Learning Cookbook

Keras Deep Learning Cookbook

Rajdeep Dua, Sujit Pal, Manpreet Singh Ghotra

Publisher Resources

ISBN: 9781788629416Supplemental Content