德ep Learning in 11 Lines
Jiro‘s pick this week is德ep Learning in 11 Lines of MATLAB Codeby theMathWorks Deep Learning Toolbox Team。
This is for anyone who would like to dabble in deep learning with minimal effort. There’s also ashort videoof this in action by one of our senior developers. Note that this sample code requires R2016b or newer, the德ep Learning Toolbox, and theImage Processing Toolbox。德ep Learning Toolbox is a must to use the trained network, but Image Processing Toolbox is used for image resizing in this example. In addition, you need to download/install the freely available packages for connecting to awebcamand a pre-trained convolutional neural network (CNN) calledAlexNet。这两个很容易获得的Add-On Explorer。
With R2016b, you get some really nice features in the area of deep learning.
- CNNs used to require a supported GPU, but now you can run a trained network to extract features, make predictions, and classify on a CPU. GPU is still recommended for a much better performance.
- Training a network is a lot of work and time-consuming. Now, you can download a pre-trained network, called AlexNet, to extract features or to adapt to your own problem set, which is referred to as transfer learning.
Just as this entry promises, I was able to do some deep learning on a live image coming in from my webcam, just in 11 lines of MATLAB code.
Seems like I have a coffee mug! :)
Comments
Give it a try and let us know what you thinkhereor leave acommentfor the Deep Learning Team.
- Category:
- Picks
Comments
To leave a comment, please clickhereto sign in to your MathWorks Account or create a new one.