Get output from a non final keras model layer
问题 I am using ubuntu with python 3 and keras over tensorflow, I am trying to create a model using transfer learning from a pre trained keras model as explained here: I am using the following code import numpy as np from keras.applications import vgg16, inception_v3, resnet50, mobilenet from keras import Model a = np.random.rand(1, 224, 224, 3) + 0.001 a = mobilenet.preprocess_input(a) mobilenet_model = mobilenet.MobileNet(weights='imagenet') mobilenet_model.summary() inputLayer = mobilenet_model