Created
July 29, 2020 14:52
-
-
Save sadimanna/6df2548b7555c1d3967d21b38e2e9ba2 to your computer and use it in GitHub Desktop.
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
| NUM_CLASSES = 5 | |
| fine_tuning = True | |
| model = Sequential() | |
| model.add(ResNet50(include_top=False,pooling='avg',weights='imagenet',input_shape=(H,W,3))) | |
| model.add(Dense(NUM_CLASSES,activation = 'sigmoid')) | |
| if fine_tuning: | |
| model.layers[0].trainable = True | |
| else: | |
| model.layers[0].trainable = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment