Book Image

TensorFlow 2.0 Computer Vision Cookbook

By : Jesús Martínez
Book Image

TensorFlow 2.0 Computer Vision Cookbook

By: Jesús Martínez

Overview of this book

Computer vision is a scientific field that enables machines to identify and process digital images and videos. This book focuses on independent recipes to help you perform various computer vision tasks using TensorFlow. The book begins by taking you through the basics of deep learning for computer vision, along with covering TensorFlow 2.x’s key features, such as the Keras and tf.data.Dataset APIs. You’ll then learn about the ins and outs of common computer vision tasks, such as image classification, transfer learning, image enhancing and styling, and object detection. The book also covers autoencoders in domains such as inverse image search indexes and image denoising, while offering insights into various architectures used in the recipes, such as convolutional neural networks (CNNs), region-based CNNs (R-CNNs), VGGNet, and You Only Look Once (YOLO). Moving on, you’ll discover tips and tricks to solve any problems faced while building various computer vision applications. Finally, you’ll delve into more advanced topics such as Generative Adversarial Networks (GANs), video processing, and AutoML, concluding with a section focused on techniques to help you boost the performance of your networks. By the end of this TensorFlow book, you’ll be able to confidently tackle a wide range of computer vision problems using TensorFlow 2.x.
Table of Contents (14 chapters)

Chapter 12: Boosting Performance

More often than not, the leap between good and great doesn't involve drastic changes, but instead subtle tweaks and fine-tuning.

It is often said that 20% of the effort can get you 80% of the results (this is known as the Pareto principle). But what about that gap between 80% and 100%? What do we need to do to exceed expectations, to improve our solutions, to squeeze as much performance out of our computer vision algorithms as possible?

Well, as with all things deep learning, the answer is a mixture of art and science. The good news is that in this chapter, we'll focus on simple tools you can use to boost the performance of your neural networks!

In this chapter, we will cover the following recipes:

  • Using convolutional neural network ensembles to improve accuracy
  • Using test time augmentation to improve accuracy
  • Using rank-N accuracy to evaluate performance
  • Using label smoothing to increase performance
  • Checkpointing...