Difference between training
and trainable
#448
Unanswered
Nour-Aldein2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the TensorFlow certificate course, in section 6. While building the first model (transfer learning, feature extraction) we froze the layers of the backbone model by using
base_model.trainable = False
so we won't break the patterns that were leaned from the ImageNet dataset.Later, when stacking the submodels and layers of the model, there is the line:
According to Kears's FAQ (https://keras.io/getting_started/faq/#whats-the-difference-between-the-training-argument-in-call-and-the-trainable-attribute):
If
.trainable=False
stops the weights from being updated during training, why do we have to specifytraining=False
when using the backbone model?Is it because of
Dropout
andBatchNormalization
layers? If so, why do they behave differently than other layers?Beta Was this translation helpful? Give feedback.
All reactions