Create fully convolutional network layers for semantic segmentation
returns a fully convolutional network (FCN), configured as FCN 8s, for semantic
segmentation. The FCN is preinitialized using layers and weights from the VGG-16
network.lgraph
= fcnLayers(imageSize
,numClasses
)
fcnLayers
includes a pixelClassificationLayer
to predict the categorical label for every
pixel in an input image. The pixel classification layer only supports RGB
images.
This function requires the Deep Learning
Toolbox™
Model for VGG-16 Network support package. If this support
package is not installed, then the vgg16
function provides a download link.
returns an FCN configured as a type specified by lgraph
= fcnLayers(imageSize
,numClasses
,'Type',type
)type
.
Networks produced by fcnLayers
support GPU code
generation for deep learning once they are trained with trainNetwork
. See Deep Learning Code Generation (Deep Learning Toolbox) for
details and examples.
[1] Long, J., E. Shelhamer, and T. Darrell. "Fully Convolutional Networks for Semantic Segmentation." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015, pp. 3431–3440.