Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Computer Vision with TensorFlow 2
  • Table Of Contents Toc
  • Feedback & Rating feedback
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

By : Benjamin Planche, Eliot Andres
3.3 (12)
close
close
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

3.3 (12)
By: Benjamin Planche, Eliot Andres

Overview of this book

Computer vision solutions are becoming increasingly common, making their way into fields such as health, automobile, social media, and robotics. This book will help you explore TensorFlow 2, the brand new version of Google's open source framework for machine learning. You will understand how to benefit from using convolutional neural networks (CNNs) for visual tasks. Hands-On Computer Vision with TensorFlow 2 starts with the fundamentals of computer vision and deep learning, teaching you how to build a neural network from scratch. You will discover the features that have made TensorFlow the most widely used AI library, along with its intuitive Keras interface. You'll then move on to building, training, and deploying CNNs efficiently. Complete with concrete code examples, the book demonstrates how to classify images with modern solutions, such as Inception and ResNet, and extract specific content using You Only Look Once (YOLO), Mask R-CNN, and U-Net. You will also build generative adversarial networks (GANs) and variational autoencoders (VAEs) to create and edit images, and long short-term memory networks (LSTMs) to analyze videos. In the process, you will acquire advanced insights into transfer learning, data augmentation, domain adaptation, and mobile and web deployment, among other key concepts. By the end of the book, you will have both the theoretical understanding and practical skills to solve advanced computer vision problems with TensorFlow 2.0.
Table of Contents (16 chapters)
close
close
Free Chapter
1
Section 1: TensorFlow 2 and Deep Learning Applied to Computer Vision
In Progress | 0 / 1 sections completed | 0%
2
Computer Vision and Neural Networks
In Progress | 0 / 57 sections completed | 0%
5
Section 2: State-of-the-Art Solutions for Classic Recognition Problems
In Progress | 0 / 1 sections completed | 0%
6
Influential Classification Tools
In Progress | 0 / 60 sections completed | 0%
9
Section 3: Advanced Concepts and New Frontiers of Computer Vision
In Progress | 0 / 1 sections completed | 0%
10
Training on Complex and Scarce Datasets
In Progress | 0 / 60 sections completed | 0%
chevron up
14
Assessments
In Progress | 0 / 10 sections completed | 0%
15
Other Books You May Enjoy
In Progress | 0 / 2 sections completed | 0%

Parallelizing and prefetching

By default, most of the dataset methods are processing samples one by one, with no parallelism. However, this behavior can be easily changed, for example, to take advantage of multiple CPU cores. For instance, the .interleave() and .map() methods both have a num_parallel_calls parameter to specify the number of threads they can create (refer to the documentation at https://www.tensorflow.org/api_docs/python/tf/data/Dataset). Parallelizing the extraction and transformation of images can greatly decrease the time needed to generate training batches, so it is important to always properly set num_parallel_calls (for instance, to the number of CPU cores the processing machine has).

TensorFlow also provides tf.data.experimental.parallel_interleave() (refer to the documentation at https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/data/experimental/parallel_interleave), a parallelized version of .interleave() with some additional options. For instance...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY