필터 지우기
필터 지우기

Question about the Matlab Wasserstein GAN example

조회 수: 5 (최근 30일)
Mohammed
Mohammed 2024년 5월 21일
편집: Malay Agarwal 2024년 5월 22일
The original Wasserstein gan paper suggest removing the Critic's last dense layer activation function(sigmoid) such that the output value is not limited to fake or real. The posted example still uses sigmoid layer, am I right?

답변 (1개)

Malay Agarwal
Malay Agarwal 2024년 5월 22일
편집: Malay Agarwal 2024년 5월 22일
The diagram of the Discriminator model in the example (https://www.mathworks.com/help/deeplearning/ug/trainwasserstein-gan-with-gradient-penalty-wgan-gp.html) shows that the model does have a “sigmoid” layer at the end:
This can also be confirmed by looking at how the Discriminator model is defined:
layersD = [
imageInputLayer(inputSize,Normalization="none")
convolution2dLayer(filterSize,numFilters,Stride=2,Padding="same")
leakyReluLayer(scale)
convolution2dLayer(filterSize,2*numFilters,Stride=2,Padding="same")
layerNormalizationLayer
leakyReluLayer(scale)
convolution2dLayer(filterSize,4*numFilters,Stride=2,Padding="same")
layerNormalizationLayer
leakyReluLayer(scale)
convolution2dLayer(filterSize,8*numFilters,Stride=2,Padding="same")
layerNormalizationLayer
leakyReluLayer(scale)
convolution2dLayer(4,1)
sigmoidLayer]; % Notice the sigmoid layer at the end
Hope this helps!

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by