helperImportMatConvNet error-- Supports only AlexNet

조회 수: 1 (최근 30일)
shivasakthi
shivasakthi 2017년 1월 27일
댓글: Richa 2018년 4월 2일
As I could observe, this SeriesNetwork object from the Neural Network Toolbox imports MatConvNet network into a SeriesNetwork object and the function supports only the AlexNet model from MatConvNet. Do we have this function restructured to support the other models in the Matconvnet toolbox?

채택된 답변

mizuki
mizuki 2017년 1월 29일
Yes. You can for example load VGG16 with following code:
>> cnnURL = http://www.vlfeat.org/matconvnet/models/beta16/imagenet-vgg-f.mat;
>> cnnMatFile = 'imagenet-vgg-f.mat';
>> websave(cnnMatFile, cnnURL);
>> convnet = helperImportMatConvNet(cnnMatFile);
  댓글 수: 5
Debanjan Lahiri
Debanjan Lahiri 2018년 1월 19일
I have the same error for % Specify folder for storing CNN model
cnnMatFile = 'C:\Users\Anand\Desktop\MATCONVNET\imagenet-vgg-f.mat';
% Load MatConvNet network into a SeriesNetwork
Net = helperImportMatConvNet(cnnMatFile);
as
"Error using helperImportMatConvNet>getPadding (line 233) Only symmetric padding is supported
Error in helperImportMatConvNet>createPoolLayer (line 122) padding = getPadding(l);
Error in helperImportMatConvNet (line 56) layers{end+1} = createPoolLayer(l);
Error in load_saved_network (line 22) Net = helperImportMatConvNet(cnnMatFile);"
Pls. help in this issue
Richa
Richa 2018년 4월 2일
U can tweak this function of getPadding() to work for other models as well.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by