Main Content

Train Networks Using Deep Network Designer

TheDeep Network Designerapp lets you build and train deep neural networks. Deep Network Designer supportstrainNetworktraining using image data or datastore objects. You can also export your untrained network for training at the command line, for example, to train your network using custom training loops.

To train a network, follow these steps:

  1. Create network

  2. Import data

  3. Select training options

  4. Train network

  5. Export network

You can build a network interactively using Deep Network Designer, or import a network from the workspace. You can also select a pretrained network from the Deep Network Designer start page for transfer learning. For more information, seeBuild Networks with Deep Network Designer

To train a deep learning model, you must have a suitable network and training data. To import image data from a folder containing a subfolder of images for each class, or from animageDatastoreobject, on theDatatab, clickImport Data>Import Image Data。进口任何数据存储的Datatab, clickImport Data>Import Datastore。After import, Deep Network Designer displays a preview of the imported data so that you can check that the data is as expected prior to training. For more information, seeImport Data into Deep Network Designer

Select Training Options

Once you have your network and data, the next step is to select the training options. On theTrainingtab, click培训Options。If you do not know which training options to use, try training with the default settings and then adjusting them to suit your network and data. For example, try adjusting the initial learning rate, or train for longer by increasing the number of epochs. For information about techniques for improving the accuracy of deep learning networks, seeDeep Learning Tips and Tricks。For more information about the training options, seetrainingOptions

培训Options dialog box in Deep Network Designer

Train Network

After you select your training options, train the network by clickingTrain。深层网络设计师应用displays an animated plot of the training progress. The plot shows mini-batch loss and accuracy and additional information on the training progress. If you specified validation data, the plot also shows the validation loss and accuracy. The plot has a stop buttonin the top-right corner. Click the button to stop training and return the current state of the network. For more information on the training progress plot, seeMonitor Deep Learning Training Progress

Training progress plot in Deep Network Designer

You can train a variety of networks using Deep Network Designer. For example, image classification or regression networks, sequence networks, numeric data networks, semantic segmentation networks, and image-to-image regression networks. In Deep Network Designer, you can train a network using thetrainNetworkfunction on any data that you can express as a datastore object. The following examples show how to build and train a network using Deep Network Designer.

Once training is complete, on theTrainingtab, clickExportto export your trained network and results to the workspace. To save the training progress plot as an image, clickExport Training Plot。You can learn how to build and train your network using command line functions by clickingExport>Generate Code for Trainingand examining the generated live script.

Deep Network Designer does not support training using custom training loops. To train your network using a custom training loop, first export the network to the workspace and convert it to adlnetworkobject. You can then train the network using thedlnetworkobject and a custom training loop. For more information, seeTrain Network Using Custom Training Loop

Next Steps

Once training is complete, clickExport>Create Experimentto create a deep learning experiment in Experiment Manager. You can use Experiment Manager to sweep through a range of hyperparameter values or use Bayesian optimization to find optimal training options. For an example showing how to useExperiment Managerto tune the hyperparameters of a network trained in Deep Network Designer, seeGenerate Experiment Using Deep Network Designer

See Also

|

Related Topics