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 件のコメント
Joss Knight
2024 年 12 月 7 日
Hello, first, are you a bot?
帆帆
2024 年 12 月 8 日
Joss Knight
2024 年 12 月 8 日
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
2024 年 12 月 9 日
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 日
帆帆
2024 年 12 月 9 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!