I should either be an MxN, MxNxP, MxNx1xP or an MxNx3xP sized array.

1 次查看(过去 30 天)
Hi, i am trying to visualizate second convolutional layer's filter weights in my neural network but i get this error. For first conv layer it worked. Here is the code for visualization.
% Extract the first convolutional layer weights
w = cifar10Net.Layers(2).Weights;
% rescale the weights to the range [0, 1] for better visualization
w = rescale(w);
figure
montage(w)
2 is replaced with 6 in my case. This is the error
Error using montage>parse_inputs (line 255)
I should either be an MxN, MxNxP, MxNx1xP or an MxNx3xP sized array.
Error in montage (line 179)
parse_inputs(varargin{:});
Please help

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by