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)

To get the most out of this book

You will need a version of TensorFlow 2 installed. All the recipes in this book have been implemented and tested using TensorFlow 2.3 on macOS X and Ubuntu 20.04, but they should work with future stable versions as well. Please note that Windows is not supported.

Although not strictly necessary, access to a GPU-enabled machine, either on-premises or in the cloud, is highly encouraged, as it reduces the runtime of the examples dramatically.

If you are using the digital version of this book, we advise you to type the code yourself or access the code via the GitHub repository (link available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

Because this is a hands-on book, focused on practical examples to solve varied situations, I encourage you to expand your knowledge on any topics that you find interesting in any particular recipe. In the See also section of each recipe, you will find links, references, and suggestions for recommended reads or extension points that will cement your understanding of the techniques explained in that example.

Download the example code files

You can download the example code files for this book from GitHub at https://github.com/PacktPublishing/Tensorflow-2.0-Computer-Vision-Cookbook. In case there’s an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!