How can we dynamically and stereoscopically show the process of convolution of samples by a convolutional neural network?

layers0 = [ ...
imageInputLayer([size(input{1},1) size(input{1},2) size(input{1},3)],'Name','input1')
convolution2dLayer([3,3],10,'Padding','same') % 卷积核大小为3*1 生成16个卷积
batchNormalizationLayer % 批归一化层
reluLayer %relu激活函数
maxPooling2dLayer([2,2],'Stride',2,"Name", "pool1")% 2x1 kernel stride=2
dropoutLayer(0.2)
convolution2dLayer([5,5], 24, 'Padding', 'same')
batchNormalizationLayer
reluLayer
maxPooling2dLayer([2 1],'Stride',2,"Name", "pool2")% 2x1 kernel stride=2
dropoutLayer(0.1)
fullyConnectedLayer(64,'name','fullconnect1')
dropoutLayer(0.1)
fullyConnectedLayer(32,'name','fullconnect2')
dropoutLayer(0.1)
fullyConnectedLayer(numClasses,'name','fullconnect3') % 全连接层设置(影响输出维度)(cell层出来的输出层) %
softmaxLayer('Name','softmax')
classificationLayer('name','output')];
%% Set the hyper parameters for unet training
options0 = trainingOptions('sgdm', ... % 优化算法Adam
'MaxEpochs', 80, ... % 最大训练次数
'GradientThreshold', 1, ... % 梯度阈值
'InitialLearnRate', 0.001, ... % 初始学习率
'LearnRateDropFactor',0.01, ... % 学习率调整因子
'L2Regularization', 0.0001, ... % 正则化参数
'ExecutionEnvironment', 'gpu',... % 训练环境
'Verbose', 1, ... % 关闭优化过程
'Plots', 'none'); % 画出曲线

7 件のコメント

Hello, first, are you a bot?
帆帆
帆帆 2024 年 12 月 8 日

@Joss Knight Hello,i'm not a bot .i'm a beginner.

Okay, then hopefully you won't mind rephrasing your question. Unfortunately the phrase "dynamically and stereoscopically show the process of convolution" doesn't make any sense, and your code doesn't do anything except define a network.
帆帆
帆帆 2024 年 12 月 9 日
@Joss Knight Thanks for the reply, in fact, I would like to see convolutional animations of the network I defined, is there a feature in matlab, please.
What is a convolutional animation? A graphical representation of the activations at each layer perhaps? Something like the example here?
Have you explored the visualization techniques documented here? Perhaps one of them gives you what you want.
帆帆
帆帆 2024 年 12 月 9 日
@Joss Knight yeah,what I'm trying to say is a graphical representation of the activations at each layer perhaps.
No,I haven't.
帆帆
帆帆 2024 年 12 月 9 日
@Joss Knight Thank you very much for answering my question.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2024 年 12 月 7 日

コメント済み:

2024 年 12 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by