フィルターのクリア

Finding two layers to replace in googlenet

10 ビュー (過去 30 日間)
Tahmina Sumi
Tahmina Sumi 2020 年 1 月 30 日
コメント済み: cheng xiao 2020 年 9 月 2 日
Dear Altruists,
I was trying this example: https://www.mathworks.com/help/deeplearning/examples/train-deep-learning-network-to-classify-new-images.html for deep learning using googlenet.But its showing me error which is "Undefined function or variable 'findLayersToReplace' " in this two lines
[learnableLayer,classLayer] = findLayersToReplace(lgraph);
[learnableLayer,classLayer]
I have tried this lines in the command prompt
edit(fullfile(matlabroot,'examples','nnet','main','freezeWeights.m'))
edit(fullfile(matlabroot,'examples','nnet','main','createLgraphUsingConnections.m'))
edit(fullfile(matlabroot,'examples','nnet','main','findLayersToReplace.m'))
But i'm not getting any fruitfull result...
Please help me creating the function of findLayersToReplace.
Thanks in advance.
  2 件のコメント
Mohammad Sami
Mohammad Sami 2020 年 1 月 30 日
編集済み: Mohammad Sami 2020 年 1 月 30 日
Do you have deep learning and neural network toolbox ?
What is your matlabs version ?
Tahmina Sumi
Tahmina Sumi 2020 年 1 月 30 日
編集済み: Tahmina Sumi 2020 年 1 月 30 日
Yes I have installed necessary toolbox of deep learning and neural network.My matlab version is R2018a....
As per the link "https://www.mathworks.com/help/deeplearning/examples/train-deep-learning-network-to-classify-new-images.html" i tried this line "edit(fullfile(matlabroot,'examples','nnet','main','findLayersToReplace.m'))"
in command prompt and its showing error. I am attaching a picture of the error here.. Screenshot (764).png

サインインしてコメントする。

採用された回答

Mohammad Sami
Mohammad Sami 2020 年 1 月 31 日
For R2018a, you can follow this tutorial. Essentially it shows you what the findLayersToReplace function was doing.
For most transfer learning applications, we remove the final fully connected layer, softmax layer and classification layer.
These are then replaced with your own fc, softmax and classification layers.
  2 件のコメント
Tahmina Sumi
Tahmina Sumi 2020 年 1 月 31 日
Ok...Thanks a lot :)
cheng xiao
cheng xiao 2020 年 9 月 2 日
it works ,thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by