Deep Learning: Transfer Learning in 10 lines of MATLAB Code
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Learn how to use transfer learning in MATLAB to re-train deep learning networks created by experts for your own data or task.
This demo teaches you how to use transfer learning to re-train AlexNet, a pretrained deep convolutional neural network (CNN or ConvNet) to recognize snack food such as hot dogs, cup cakes and apple pie.
You can download the AlexNet support package here:
https://www.mathworks.com/matlabcentral/fileexchange/59133-neural-network-toolbox-tm--model-for-alexnet-network
You can download the webcam support package here:
https://www.mathworks.com/matlabcentral/fileexchange/45182-matlab-support-package-for-usb-webcams
Cite As
MathWorks Deep Learning Toolbox Team (2026). Deep Learning: Transfer Learning in 10 lines of MATLAB Code (https://se.mathworks.com/matlabcentral/fileexchange/61639-deep-learning-transfer-learning-in-10-lines-of-matlab-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Training 3D CNN models
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
FileExchangeEntry/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Updated icon image. |
