{"id":12236,"date":"2023-06-11T21:30:58","date_gmt":"2023-06-12T01:30:58","guid":{"rendered":"https:\/\/blogs.mathworks.com\/deep-learning\/?p=12236"},"modified":"2023-06-11T21:30:58","modified_gmt":"2023-06-12T01:30:58","slug":"transfer-learning-made-easy","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/deep-learning\/2023\/06\/11\/transfer-learning-made-easy\/","title":{"rendered":"Transfer Learning Made Easy"},"content":{"rendered":"<h6><\/h6>\r\nTransfer learning is the process of fine tuning a pretrained model to your task. In this blog post, we will show you how to modify a pretrained convolutional neural network for classifying new images.\r\n<h6><\/h6>\r\n<h6><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-12248 \" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2023\/06\/transfer_learning.png\" alt=\"Transfer learning steps for deep learning\" width=\"781\" height=\"285\" \/><\/h6>\r\n<h6><\/h6>\r\nWith MATLAB, you can perform transfer learning either programmatically (at the command line) or interactively (with a low-code app). <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/4758135\">Johanna<\/a> and I have prepared videos that will walk you through the steps of each workflow. In both workflows you will notice how MATLAB tools make data preparation, model surgery, and model re-training easy.\r\n<h6><\/h6>\r\n&nbsp;\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>Transfer Learning at the Command Line<\/strong><\/p>\r\n\r\n<h6><\/h6>\r\n<div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"6318396133112\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div>\r\n<h6><\/h6>\r\nAnd now we will walk you through how to do the same workflow interactively with the <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/ref\/deepnetworkdesigner-app.html\">Deep Network Designer<\/a> app.\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>Transfer Learning Using an App<\/strong><\/p>\r\n<div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"6329029190112\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div>\r\n<h6><\/h6>\r\nTo replicate the workflows seen in the above videos, get the datasets and some extra help from the documentation examples <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/ug\/train-deep-learning-network-to-classify-new-images.html\">Train Deep Learning Network to Classify New Images<\/a> (command line) and <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/ug\/transfer-learning-with-deep-network-designer.html\">Transfer Learning with Deep Network Designer<\/a> (app).","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2023\/06\/transfer_learning.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>\r\nTransfer learning is the process of fine tuning a pretrained model to your task. In this blog post, we will show you how to modify a pretrained convolutional neural network for classifying new... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/deep-learning\/2023\/06\/11\/transfer-learning-made-easy\/\">read more >><\/a><\/p>","protected":false},"author":194,"featured_media":12248,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,9,20],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/12236"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/users\/194"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/comments?post=12236"}],"version-history":[{"count":11,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/12236\/revisions"}],"predecessor-version":[{"id":12272,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/12236\/revisions\/12272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/media\/12248"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/media?parent=12236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/categories?post=12236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/tags?post=12236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}