trainMaskRCNN
Syntax
Description
trains a Mask R-CNN network. A trained Mask R-CNN network object can perform instance
segmentation to detect and segment multiple object classes. This syntax supports transfer
learning on a pretrained Mask R-CNN network and training an uninitialized Mask R-CNN
network.trainedDetector
= trainMaskRCNN(trainingData
,network
,options
)
This function requires that you have Deep Learning Toolbox™. It is recommended that you also have Parallel Computing Toolbox™ to use with a CUDA®-enabled NVIDIA® GPU. For information about the supported compute capabilities, see GPU Computing Requirements (Parallel Computing Toolbox).
uses additional options specified by one or more name-value arguments.trainedDetector
= trainMaskRCNN(trainingData
,network
,options
,Name=Value
)
[
also returns information on the training progress, such as training loss and accuracy, for
each iteration.trainedDetector
,info
] = trainMaskRCNN(trainingData
,network
,options
)
Input Arguments
Output Arguments
Tips
The
trainMaskRCNN
function has a high GPU memory requirement. It is recommended to train a Mask R-CNN network with at least 12 GB of available GPU memory.To reduce the training memory consumption, try reducing the
InputSize
property of thenetwork
argument or theNumRegionsToSample
name-value argument.When you want to perform transfer learning on a data set with similar content to the COCO data set, freezing the feature extraction and region proposal subnetworks can help the network training converge faster.