Book Image

PyTorch Deep Learning Hands-On

By : Sherin Thomas, Sudhanshu Passi
Book Image

PyTorch Deep Learning Hands-On

By: Sherin Thomas, Sudhanshu Passi

Overview of this book

PyTorch Deep Learning Hands-On is a book for engineers who want a fast-paced guide to doing deep learning work with PyTorch. It is not an academic textbook and does not try to teach deep learning principles. The book will help you most if you want to get your hands dirty and put PyTorch to work quickly. PyTorch Deep Learning Hands-On shows how to implement the major deep learning architectures in PyTorch. It covers neural networks, computer vision, CNNs, natural language processing (RNN), GANs, and reinforcement learning. You will also build deep learning workflows with the PyTorch framework, migrate models built in Python to highly efficient TorchScript, and deploy to production using the most sophisticated available tools. Each chapter focuses on a different area of deep learning. Chapters start with a refresher on how the model works, before sharing the code you need to implement it in PyTorch. This book is ideal if you want to rapidly add PyTorch to your deep learning toolset.
Table of Contents (11 chapters)
10
Index

Defining the approaches

Generative networks are mostly used in artistic applications nowadays. Style transfer, image optimization, deblurring, resolution improvements, and others are some examples. What follows are two examples of generative models being used in computer vision.

Defining the approaches
Defining the approaches

Figure 6.1: Examples of generative model applications such as super resolution and image inpainting

Sources: Generative Image Inpainting with Contextual Attention, Jiahui Yu and others and Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network, Christian Ledig and others

There are several categories of generative networks described by Ian Goodfellow, the creator of GANs:

Defining the approaches

Figure 6.2 Generative network hierarchy

We'll be discussing two major categories that have been discussed a lot in the past and are still active research fields:

  • Autoregressive models
  • GANs

Autoregressive models are models where the current value is inferred from the previous values, as we discussed...