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

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.
@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.
@Joss Knight yeah,what I'm trying to say is a graphical representation of the activations at each layer perhaps.
No,I haven't.
@Joss Knight Thank you very much for answering my question.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Historical Contests에 대해 자세히 알아보기

질문:

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