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

Neural network input and parameters

In this section, the model inputs various Keras libraries and TensorFlow. This can be seen in the following code. For now, take this with a pinch of salt; this will be explained in full in Chapter 6, Visual Search Using Transfer Learning:

from __future__ import absolute_import, division, print_function, unicode_literals,import tensorflow as tf,from tensorflow.keras.applications import VGG16\nfrom keras.applications.vgg16 import preprocess_input,  from keras import modelsfrom tensorflow.keras.models import Sequential, Modelfrom tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, GlobalAveragePooling2D, MaxPooling2Dfrom tensorflow.keras.preprocessing.image import ImageDataGenerator\n",from tensorflow.keras.optimizers ...
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