regionProposalLayer
(Not recommended) Region proposal layer for Faster R-CNN
RegionProposalLayer
is not recommended. Instead, use a different type
of object detector, such as a yoloxObjectDetector
or yolov4ObjectDetector
detector. For more information, see Version History.
Description
A region proposal layer outputs bounding boxes around potential objects in an image as part of the region proposal network (RPN) within Faster R-CNN. These outputs are further refined by additional layers within Faster R-CNN to produce the final object detection results.
There are two inputs to this layer:
'scores'
— The classification scores produced by the RPN classification branch'boxDeltas'
— The bounding box deltas produced by the RPN regression branch
Use the input names when connecting or disconnecting the region proposal layer to other
layers using connectLayers
(Deep Learning Toolbox) or
disconnectLayers
(Deep Learning Toolbox)
(requires Deep Learning Toolbox™).
Creation
Description
layer = regionProposalLayer(
creates a region proposal layer for building Faster R-CNN object detection networks, and
sets the anchorBoxes
)AnchorBoxes
property.
Properties
Examples
References
[1] Ren, S., K. He, R. Girshick, and J. Sun. "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks." Advances in Neural Information Processing Systems. Vol. 28, 2015.
Version History
Introduced in R2018bSee Also
trainFasterRCNNObjectDetector
| layerGraph
(Deep Learning Toolbox) | connectLayers
(Deep Learning Toolbox) | removeLayers
(Deep Learning Toolbox)