Need a refresher? Try a free, interactive tutorial.
imageDatastorefunction automatically labels the images based on folder names.
You can use the data and the modified network to train a new image classifer. There are a variety of training options from which to choose. The example used in this step is a simple training configuration that includes the optimizer, number of Epochs, initial learn rate, and plot. Training a model can take a lot of time depending on your GPU and CPU resources.
classifyfunction to classify all the images in one line of code.
Key things to remember:
You can also follow along with the video below:
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.