Created
September 28, 2019 17:17
-
-
Save securetorobert/f6e2ed95423accf9804a8f3f06fa986a to your computer and use it in GitHub Desktop.
Add layers for transfer learning in TF 2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = base_model.output | |
x = layers.GlobalAveragePooling2D()(x) | |
x = layers.Dense(4096, activation='relu')(x) | |
x = layers.Dense(1, activation='sigmoid')(x) | |
model_3 = models.Model(inputs=base_model.input, outputs=x) | |
print(model_3.summary()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment