helperImportMatConvNet error-- Supports only AlexNet

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 日

2 投票

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 件のコメント

shivasakthi
shivasakthi 2017 年 2 月 1 日
Thanks a lot for that info. Do we have this Series network object "helperImportMatConvNet" written for GoogleNet and Microsoft ResNet?
shivasakthi
shivasakthi 2017 年 2 月 2 日
編集済み: Walter Roberson 2017 年 2 月 2 日
Hi, Against what you mentioned, it is not supporting the VGG 16 pre-trained model. it gives an error:
convnet = helperImportMatConvNet(cnnMatFile);
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);
Kindly help with this.
dekwe
dekwe 2017 年 6 月 21 日
I have the same error when I want to use googleNet or resNet
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 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2017 年 1 月 27 日

コメント済み:

2018 年 4 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by