matlab pix,Create pix2pixHD global generator network

A pix2pixHD generator network consists of an encoder module followed by

a decoder module. The default network follows the architecture proposed by Wang et. al.

[1].

The encoder module downsamples the input by a factor of

2^NumDownsamplingBlocks. The encoder module consists of an initial

block of layers, NumDownsamplingBlocks downsampling blocks, and

NumResidualBlocks residual blocks. The decoder module upsamples the

input by a factor of 2^NumDownsamplingBlocks. The decoder module

consists of NumDownsamplingBlocks upsampling blocks and a final block.

The table describes the blocks of layers that comprise the encoder and decoder modules.

Block TypeLayersDiagram of Default BlockInitial blockAn imageInputLayer(Deep Learning Toolbox)

A convolution2dLayer(Deep Learning Toolbox) with a stride of [1 1] and a filter size of

FilterSizeInFirstAndLastBlocks

An optional normalization layer, specified by the

NormalizationLayer name-value argument.

An activation layer specified by the

ActivationLayer name-value argument.6a14fde07ffaede2f5e87a7c2a69db92.png

Downsampling blockA convolution2dLayer(Deep Learning Toolbox) with a stride of [2 2] to perform

downsampling. The convolution layer has a filter size of

FilterSizeInIntermediateBlocks.

An optional normalization layer, specified by the

NormalizationLayer name-value argument.

An activation layer specified by the

ActivationLayer name-value argument.48c388315eb548505ae24eba2250dff0.png

Residual blockA convolution2dLayer(Deep Learning Toolbox) with a stride of [1 1] and a filter size of

FilterSizeInIntermediateBlocks.

An optional normalization layer, specified by the

NormalizationLayer name-value argument.

An activation layer specified by the

ActivationLayer name-value argument.

An optional dropoutLayer(Deep Learning Toolbox). By default, residual blocks omit a dropout layer.

Include a dropout layer by specifying the Dropout

name-value argument as a value in the range (0, 1].

A second convolution2dLayer(Deep Learning Toolbox).

An optional second normalization layer.

An additionLayer(Deep Learning Toolbox) that provides a skip connection between every

block.2646542a0a1afb9930b96020ee25d12b.png

Upsampling blockAn upsampling layer that upsamples by a factor of 2 according to the

UpsampleMethod name-value argument. The convolution

layer has a filter size of

FilterSizeInIntermediateBlocks.

An optional normalization layer, specified by the

NormalizationLayer name-value argument.

An activation layer specified by the

ActivationLayer name-value argument.dbbdf243b8572b347ccd5fe9a42570b4.png

Final blockA convolution2dLayer(Deep Learning Toolbox) with a stride of [1 1] and a filter size of

FilterSizeInFirstAndLastBlocks.

An optional activation layer specified by the

FinalActivationLayer name-value argument.1c6eb85bafd7656fe387f0fe39fe26d1.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值