![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1701311/image.png)
Question about the Matlab Wasserstein GAN example
7 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1701311/image.png)
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!
0 件のコメント
参考
カテゴリ
Help Center および File 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!