yolov2Layers
(To be removed) Create YOLO v2 object detection network
yolov2Layers
will be removed in a future release. Use the yolov2ObjectDetector
function instead. For more information, see Version History.
Syntax
Description
creates a YOLO v2 object detection network and returns it as a lgraph
= yolov2Layers(imageSize
,numClasses
,anchorBoxes
,network
,featureLayer
)LayerGraph
object.
adds a reorganization layer to the YOLO v2 network architecture following the layer
lgraph
= yolov2Layers(___,"ReorgLayerSource",reorgLayer
)reorgLayer
,
Examples
Input Arguments
Output Arguments
Algorithms
The yolov2Layers
function creates a YOLO v2 network, which represents
the network architecture for YOLO v2 object detector. Use the trainYOLOv2ObjectDetector
function to train the YOLO v2 network for object
detection. The function returns an object that generates the network architecture for YOLO v2
object detection network presented in [1] and [2].
yolov2Layers
uses a pretrained neural network as the base network to
which it adds a detection subnetwork required for creating a YOLO v2 object detection network.
Given a base network, yolov2Layers
removes all the layers succeeding the
feature layer in the base network and adds the detection subnetwork. The detection subnetwork
comprises of groups of serially connected convolution, ReLU, and batch normalization layers.
The YOLO v2 transform layer and YOLO v2 output layer are added to the detection subnetwork. If
you specify the name-value argument "ReorgLayerSource"
, the YOLO v2 network
concatenates the output of reorganization layer with the output of feature layer.
For information on creating a custom YOLO v2 network layer-by-layer, see Create Custom YOLO v2 Object Detection Network.
References
[1] Joseph. R, S. K. Divvala, R. B. Girshick, and F. Ali. "You Only Look Once: Unified, Real-Time Object Detection." In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 779–788. Las Vegas, NV: CVPR, 2016.
[2] Joseph. R and F. Ali. "YOLO 9000: Better, Faster, Stronger." In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6517–6525. Honolulu, HI: CVPR, 2017.
Extended Capabilities
Version History
Introduced in R2019aSee Also
yolov2ObjectDetector
| trainYOLOv2ObjectDetector
| spaceToDepthLayer
| yolov2TransformLayer
| analyzeNetwork
(Deep Learning Toolbox) | imagePretrainedNetwork
(Deep Learning Toolbox)