Book Image

Mastering Computer Vision with TensorFlow 2.x

By : Krishnendu Kar
Book Image

Mastering Computer Vision with TensorFlow 2.x

By: Krishnendu Kar

Overview of this book

Computer vision allows machines to gain human-level understanding to visualize, process, and analyze images and videos. This book focuses on using TensorFlow to help you learn advanced computer vision tasks such as image acquisition, processing, and analysis. You'll start with the key principles of computer vision and deep learning to build a solid foundation, before covering neural network architectures and understanding how they work rather than using them as a black box. Next, you'll explore architectures such as VGG, ResNet, Inception, R-CNN, SSD, YOLO, and MobileNet. As you advance, you'll learn to use visual search methods using transfer learning. You'll also cover advanced computer vision concepts such as semantic segmentation, image inpainting with GAN's, object tracking, video segmentation, and action recognition. Later, the book focuses on how machine learning and deep learning concepts can be used to perform tasks such as edge detection and face recognition. You'll then discover how to develop powerful neural network models on your PC and on various cloud platforms. Finally, you'll learn to perform model optimization methods to deploy models on edge devices for real-time inference. By the end of this book, you'll have a solid understanding of computer vision and be able to confidently develop models to automate tasks.
Table of Contents (18 chapters)
1
Section 1: Introduction to Computer Vision and Neural Networks
6
Section 2: Advanced Concepts of Computer Vision with TensorFlow
11
Section 3: Advanced Implementation of Computer Vision with TensorFlow
14
Section 4: TensorFlow Implementation at the Edge and on the Cloud

YOLO versus YOLO v2 versus YOLO v3

A comparison of the three YOLO versions is shown in this table:

YOLO

YOLO v2

YOLO v3

Input size

224 x 224

448 x 448

Framework

Darknet trained on ImageNet—1,000.

Darknet-19

19 convolution layers and 5 max pool layers.

Darknet-53

53 convolutional layers. For detection, 53 more layers are added, giving a total of 106 layers.

Small size detection

It cannot find small images.

Better than YOLO at detecting small images.

Better than YOLO v2 at small image detection.

Uses anchor boxes.

Uses a residual block.

The following diagram compares the architectures of YOLO v2 and YOLO v3:

The basic convolution layers are similar, but YOLO v3 carries out detection at three separate layers: 82, 94, and 106.

The most critical item that you should take from YOLO v3 is its object detection...