trainSOLOV2
Syntax
Description
trains a SOLOv2 network to perform instance segmentation. A trained SOLOv2 network object
can perform instance segmentation to detect and segment multiple object classes. This syntax
supports transfer learning on a pretrained SOLOv2 network, as well as training an
uninitialized SOLOv2 network.trainedDetector
= trainSOLOV2(trainingData
,network
,options
)
Note
This functionality requires Deep Learning Toolbox™ and the Computer Vision Toolbox™ Model for SOLOv2 Instance Segmentation. You can install the Computer Vision Toolbox Model for SOLOv2 Instance Segmentation from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
[
also returns information on the training progress, such as the training loss for each
iteration.trainedDetector
,info
] = trainSOLOV2(trainingData
,network
,options
)
[___] = trainSOLOV2(___,
specifies network training options using name-value arguments, in addition to any
combination of output arguments from previous syntaxes. For example,
Name=Value
)FreezeSubNetwork="none"
specifies not to freeze subnetworks during
training.
Input Arguments
Output Arguments
Tips
For cases in which the network training does not converge, try specifying the
GradientThreshold
argument when calling thetrainingOptions
function.When you want to perform transfer learning on a data set with similar content to the COCO data set, freeze the backbone and neck of the network to help the network training converge faster.
Version History
Introduced in R2023b
See Also
solov2
| segmentObjects
| evaluateInstanceSegmentation
| Experiment Manager (Deep Learning Toolbox)
Topics
- Perform Instance Segmentation Using SOLOv2
- Get Started with SOLOv2 for Instance Segmentation
- Deep Learning in MATLAB (Deep Learning Toolbox)
- Datastores for Deep Learning (Deep Learning Toolbox)