Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

Analyzing and storing data

First, we will start by analyzing and storing the data. Here, we are constructing a furniture model with three different classes: bed, chair, and sofa. Our directory structure is as follows. Each image is a color image of size 224 x 224.

Furniture_images:

  • train (2,700 images)
    • bed (900 images)
    • chair (900 images)
    • sofa (900 images)
  • val (300 images)
    • bed (100 images)
    • chair (100 images)
    • sofa (100 images)
Note the number of images is just an example; it is unique in every situation. The important thing to note is, for good detection, we need about 1,000 images per class and a train and validation split of 90%:10%.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content