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

Defining the model architecture

The model involves using a convolutional neural network (CNN) to process the facial image along with its 16 key-points. For details on CNNs, please refer to Chapter 4, Deep Learning on Images. The input to the CNN is train and test images, along with their key-points, and its output will be key-points corresponding to a new image. The CNN will learn to predict the key-points. Details of the model architecture are shown in the following image:

The code for the preceding model is as follows:

model = Sequential()model.add(Conv2D(32, (3, 3), input_shape=(299,299,1), padding='same', activation='relu'))model.add(MaxPooling2D(pool_size=(2, ...
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