spaceToDepthLayer
Description
A space to depth layer permutes the spatial blocks of the input into the depth dimension. Use this layer when you need to combine feature maps of different size without discarding any feature data.
Given an input feature map of size [H
W
C] and blocks of size [height
width], the output feature map size is
[floor
(H/height)
floor
(W/width)
C*
height*
width].
This object requires Deep Learning Toolbox™.
Creation
Description
layer = spaceToDepthLayer(blockSize)
creates a space to depth
layer, specifying the block size to reorder the input activation. The
blockSize
input sets the BlockSize
property.
Properties
Examples
Extended Capabilities
Version History
Introduced in R2020bSee Also
roiMaxPooling2dLayer
(Computer Vision Toolbox) | DepthToSpace2DLayer
| depthToSpace
| spaceToDepth
| yolov2ObjectDetector
(Computer Vision Toolbox)
Topics
- Get Started with Object Detection Using Deep Learning (Computer Vision Toolbox)
- Getting Started with YOLO v2 (Computer Vision Toolbox)
- List of Deep Learning Layers (Deep Learning Toolbox)
- Deep Learning in MATLAB (Deep Learning Toolbox)