Skip to Content
Hands-On Convolutional Neural Networks with TensorFlow
book

Hands-On Convolutional Neural Networks with TensorFlow

by Iffat Zafar, Giounona Tzanidou, Richard Burton, Nimesh Patel, Leonardo Araujo
August 2018
Intermediate to advanced
272 pages
7h 2m
English
Packt Publishing
Content preview from Hands-On Convolutional Neural Networks with TensorFlow

Deep convolutional GAN

Deep Convolutional GAN (DCGAN) is an extension of the normal GAN that we saw previously. Rather than using fully connected layers, we work with convolution layers. The idea is that the use of convolution layers helps the generator form better images. Here's what an example of this kind of model might look like:

An example implementation of DCGAN would be the same as training a normal GAN, as earlier, but simply swapping out the discriminator and generator networks for some convolutional architectures, like in the following code. Note that the generator will make use of transposed convolutions to upsample:

def discriminator(x): ...
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

Computer Vision Using Deep Learning: Neural Network Architectures with Python and Keras

Computer Vision Using Deep Learning: Neural Network Architectures with Python and Keras

Vaibhav Verdhan

Publisher Resources

ISBN: 9781789130331Supplemental Content