March 2019
Intermediate to advanced
642 pages
22h 54m
English
Let's build an image recognition model by using transfer learning in Keras; in this section, we will explain the code step by step:
from keras.layers import Dense,GlobalAveragePooling2Dfrom keras.applications import MobileNetfrom keras.applications.mobilenet import preprocess_inputfrom keras.preprocessing.image import ImageDataGeneratorfrom keras.models import Model
BasicModel=MobileNet(input_shape=(224, 224, 3), weights='imagenet',include_top=False)
Read now
Unlock full access