maskrcnn
使用蒙版R-CNN实例分段检测对象
描述
Themaskrcnn
object performs instance segmentation of objects in an image using a Mask R-CNN (regions with convolution neural networks) object detector. To detect objects in an image, pass the trained detector to thesegmentObjects
function.
Note
此功能需要蒙版R-CNN实例分割的计算机视觉工具箱™型号. You can install theComputer Vision Toolbox Model for Mask R-CNN Instance Segmentationfrom Add-On Explorer. For more information about installing add-ons, seeGet and Manage Add-Ons. To run this function, you will require the Deep Learning Toolbox™.
Creation
Syntax
描述
detector = maskrcnn("resnet50-coco")
loads a pretrained Mask R-CNN object detector trained on the COCO data set with a ResNet-50 network as the feature extractor.
detector = maskrcnn("resnet50-coco",classNames)
creates a pretrained Mask R-CNN object detector and configures it to perform transfer learning using a specified set of object classes. TheclassNames
参数设置ClassNames财产。为了获得最佳结果,请在执行检测之前对检测器进行训练。
detector = maskrcnn("resnet50-coco",classNames,anchorBoxes)
creates a pretrained Mask R-CNN object detector and configures it to perform transfer learning using a specified set of object classes and anchor boxes. TheclassNames
参数设置ClassNames财产。TheanchorBoxes
参数设置AnchorBoxes财产。
detector = maskrcnn(___,
使用名称值参数来指定ROI池大小或设置ModelName或者输入properties. Specify name-value arguments in addition to the input arguments from any of the previous syntaxes.Name=Value
)
例如,maskrcnn("resnet50-coco",classNames,anchorBoxes,PoolSize=[11 11])
specifies the ROI pooling size for the detection head as 11-by-11 pixels.
Input Arguments
Properties
Object Functions
向前 |
Run forward pass on Mask R-CNN network |
segmentObjects |
Segment objects using Mask R-CNN instance segmentation |
例子
版本历史
See Also
Apps
Functions
trainMaskRCNN
|SeriesNetwork
(Deep Learning Toolbox)|trainNetwork
(Deep Learning Toolbox)|fastRCNNObjectDetector
|fasterRCNNObjectDetector