Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created November 17, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/761ba6429b7f8c18cfd771989a1f45be to your computer and use it in GitHub Desktop.
Save NMZivkovic/761ba6429b7f8c18cfd771989a1f45be to your computer and use it in GitHub Desktop.
resnet_base = tf.keras.applications.ResNet101V2(input_shape=IMG_SHAPE, include_top=False, weights='imagenet')
resnet_base.trainable = True
from_layer = 100
for layer in resnet_base.layers[:from_layer]:
layer.trainable = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment