Can we only train the classification layer when do transfer learning of a pre-trained network?
Show older comments
Hi,
My question relates to this article https://uk.mathworks.com/help/deeplearning/gs/get-started-with-transfer-learning.html
The question is, can we only train the classification layer when do transfer learning of a pre-trained network? I want to speed up my training by keeping the feature extraction layers (base model) as they are and only replace and retrain the classification layers.
The equivalent way in Keras (Python) is by: base_model.trainable = False
If possible in Matlab, please let me know how. Your help is appreciated.
Cheers
Sud
2 Comments
Greg Heath
on 17 Jul 2020
See if it is now possible to assign different learning rates to the different layers. I wasn't able to some time ago.
Greg
Sud Sudirman
on 17 Jul 2020
Accepted Answer
More Answers (0)
Categories
Find more on Parallel and Cloud in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!