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:
You can download the webcam support package here:
MathWorks Deep Learning Toolbox Team (2023). Deep Learning: Transfer Learning in 10 lines of MATLAB Code (https://www.mathworks.com/matlabcentral/fileexchange/61639-deep-learning-transfer-learning-in-10-lines-of-matlab-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Training 3D CNN models
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!