MATLAB Answers

Error in Alexnet layer replacement

30 ビュー (過去 30 日間)
若菜 中井
若菜 中井 2021 年 1 月 5 日
回答済み: Image Analyst 2021 年 1 月 12 日
I ran the code trying to transfer Alexnet layer with reference to
net = alexnet('Weights','none');
inputSize = net.Layers(1).InputSize;
However, the following error occurred.
Unrecognized method, property, or field 'Layers' for class 'nnet.cnn.layer.Layer'.
Error in test (line 2) inputSize = net.Layers(1).InputSize;
How can I resolve the error?

  0 件のコメント



Image Analyst
Image Analyst 2021 年 1 月 12 日
Do you have the "Deep Learning Toolbox Model for AlexNet Network" installed? If not, use the Add-ons on the Home tab to get it.

  0 件のコメント


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by