Error in Alexnet layer replacement
조회 수: 23 (최근 30일)
이전 댓글 표시
I ran the code trying to transfer Alexnet layer with reference to https://jp.mathworks.com/help/deeplearning/ug/transfer-learning-using-alexnet.html?lang=en
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
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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!