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

Chapter 4. Computer Vision

Computer vision is the stream of engineering that gives eyes to a computer. It powers all sorts of image processing, such as face recognition in an iPhone, Google Lens, and so on. Computer vision has been around for decades and is probably best explored with the help of artificial intelligence, which will be demonstrated in this chapter.

We reached human accuracy in computer vision years ago in the ImageNet challenge. Computer vision has gone through an enormous amount of change in the last decade, from being an academically oriented object detection problem to a segmentation problem used by self-driving cars on real roads. Although people had come up with many different network architectures to solve computer vision, convolutional neural networks (CNNs) beat all of them.

In this chapter, we will discuss basic CNNs built on PyTorch and variants of them that have been successfully used in some state-of-the-art models powering several applications...