ssdLayers
ssdLayers
function has been removed. Use the ssdObjectDetector
function to create a SSD object detection network, instead.
Syntax
Description
creates a single shot detector (SSD) multibox object detection network based on the
lgraph
= ssdLayers(imageSize
,numClasses
,networkName
)networkName
, input image size, and the number of classes the network
should be configured to classify. The network is returned as an LayerGraph
(Deep Learning Toolbox)
object.
The SSD is a convolutional neural network-based object detector that predicts bounding box coordinates, classification scores, and corresponding class labels.
returns an SSD that contains custom anchor boxes specified by
lgraph
= ssdLayers(imageSize
,numClasses
,network
,anchorBoxes
,predictorLayerNames
)anchorBoxes
that are connected to the network layers at locations
specified by predictorLayerNames
. Specify these arguments in addition
to the input argument from the previous syntax.
Examples
Input Arguments
Output Arguments
Algorithms
The ssdLayers
function creates an SSD network and returns
lgraph
, an object that represents the network architecture for an SSD
object detector.
The trainSSDObjectDetector
function trains and returns an SSD object detector,
ssdObjectDetector
.
Use the detect
object
function for the ssdObjectDetector
object to detect objects using the detector trained with the SSD network
architecture.
bbox = detect(detector,I)
The ssdLayers
function uses a pretrained neural network as the base
network, to which it adds a detection subnetwork required for creating an SSD object detection
network. Given a base network, ssdLayers
removes all the layers
succeeding the feature layer in the base network and adds the detection subnetwork. The
detection subnetwork is comprised of groups of serially connected convolution, rectified
linear unit (ReLU), and batch normalization layers. The SSD merge layer, a box regression
layer, and a focal loss classification layer are added to the detection subnetwork.
References
[1] Liu, Wei, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C. Berg. "SSD: Single Shot MultiBox Detector." In Computer Vision – ECCV 2016, edited by Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling, 9905:21-37. Cham: Springer International Publishing, 2016. https://doi.org/10.1007/978-3-319-46448-0_2.
[2] Huang, Jonathan, Vivek Rathod, Chen Sun, Menglong Zhu, Anoop Korattikara, Alireza Fathi, Ian Fischer, et al. "Speed/Accuracy Trade-Offs for Modern Convolutional Object Detectors." In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 3296-97. Honolulu, HI:IEEE, 2017. https://doi.org/10.1109/CVPR.2017.351.