Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Deep Learning with PyTorch

You're reading from   Deep Learning with PyTorch A practical approach to building neural network models using PyTorch

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781788624336
Length 262 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vishnu Subramanian Vishnu Subramanian
Author Profile Icon Vishnu Subramanian
Vishnu Subramanian
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Deep Learning Using PyTorch FREE CHAPTER 2. Building Blocks of Neural Networks 3. Diving Deep into Neural Networks 4. Fundamentals of Machine Learning 5. Deep Learning for Computer Vision 6. Deep Learning with Sequence Data and Text 7. Generative Networks 8. Modern Network Architectures 9. What Next? 10. Other Books You May Enjoy

Deep convolutional GAN

In this section, we will implement different parts of training a GAN architecture, based on the DCGAN paper I mentioned in the preceding information box. Some of the important parts of training a DCGAN include:

  • A generator network, which maps a latent vector (list of numbers) of some fixed dimension to images of some shape. In our implementation, the shape is (3, 64, 64).
  • A discriminator network, which takes as input an image generated by the generator or from the actual dataset, and maps to that a score estimating if the input image is real or fake.
  • Defining loss functions for generator and discriminator.
  • Defining an optimizer.
  • Training a GAN.

Let's explore each of these sections in detail. The implementation is based on the code, which is available in the PyTorch examples at:

https://github.com/pytorch/examples/tree/master/dcgan

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime