Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tensorflow.contrib.keras.api.keras.models import Sequential
- vgg_model = VGG16()
- model = Sequential()
- #print(model.summary())
- for layer in vgg_model.layers:
- model.add(layer)
- print(model.summary())
- I am using keras 2.2.4
- TypeError: The added layer must be an instance of class Layer. Found: <keras.engine.input_layer.InputLayer object at 0x7fc6f1b92240>
Add Comment
Please, Sign In to add comment