hello,
My code is -
net=googlenet;
analyzeNetwork(net)
this is returning an error saying
too many input arguments.
And the same error is displayed when I am creating my custom network and using
net=trainNetwork(datastore,layers,options);
Please Help.
Thank You

22 件のコメント

Ameer Hamza
Ameer Hamza 2020 年 10 月 21 日
Can you show the output of
which trainNetwork
REN Jain
REN Jain 2020 年 10 月 21 日
E:\REN\toolbox\nnet\cnn\trainNetwork.m
Ameer Hamza
Ameer Hamza 2020 年 10 月 21 日
編集済み: Ameer Hamza 2020 年 10 月 22 日
What about
which analyzeNetwork
can you paste complete error message? Which MATLAB release are you using?
REN Jain
REN Jain 2020 年 10 月 21 日
REN Jain
REN Jain 2020 年 10 月 21 日
i am getting same error using googlenet also. :\
REN Jain
REN Jain 2020 年 10 月 21 日
MATLAB release is R2020b
Ameer Hamza
Ameer Hamza 2020 年 10 月 21 日
It seems that the file uigridlayout.m has somehow got edited. Can you run the command
edit uigridlayout.m
and check if first two lines looks like this
function gridComponent = uigridlayout(varargin)
%UIGRIDLAYOUT Create a grid layout container
REN Jain
REN Jain 2020 年 10 月 21 日
Yes It looks like the mentioned lines.
Ameer Hamza
Ameer Hamza 2020 年 10 月 22 日
First run the following line in command window
dbstop if error
and then re-run code. When the error occurs, the MATLAB execution will halt inside a file, can you tell what is the name of that file?
REN Jain
REN Jain 2020 年 10 月 22 日
This What has come up.
REN Jain
REN Jain 2020 年 10 月 22 日
Its Working Now.
I uninstalled and re-installed the Deep Learning Tool Box.
Many Many Thanks for Your effort.
REN Jain
REN Jain 2020 年 10 月 22 日
My GOD!!!!!!
It worked once and I closed the application and launched it again and now I am getting the same error.
Ameer Hamza
Ameer Hamza 2020 年 10 月 22 日
I suggest you reinstall MATLAB completely. Deletes the current files and then reinstall.
REN Jain
REN Jain 2020 年 10 月 22 日
Yaa.
Thank You Agian....
REN Jain
REN Jain 2020 年 10 月 22 日
I uninstalled and re installed the complete matlab and still getting the same error. :\
Walter Roberson
Walter Roberson 2020 年 10 月 22 日
dbstop if caught error
and run and you should be able to see the problem line. When it stops check
which -all uigridlayout
as you might not be getting the public version
REN Jain
REN Jain 2020 年 10 月 23 日
This is what I am getting.
Walter Roberson
Walter Roberson 2020 年 10 月 23 日
Okay, we are getting somewhere. Show
which -all replace
I suspect you will find that you have your own replace.m or a third-party toolbox that has replace.m
Ameer Hamza
Ameer Hamza 2020 年 10 月 23 日
Ah!! This must be it. I didn't realize there is also a
dbstop if caught error
REN Jain
REN Jain 2020 年 10 月 23 日
I executed that command and this is the result.
Ameer Hamza
Ameer Hamza 2020 年 10 月 23 日
Exactly as suspected!!! You have a file replace.m at
E:\REN\Matlab files\replace.m
which is shadowing the built-in replace function. Change the name of your file to something else.
REN Jain
REN Jain 2020 年 10 月 24 日
Oooh Understood. I have created a function name replace, and there is a inbuilt replace fn that exsist and due to that they are overlapping or shadowing something.
Ya Its Working Now.
Million time THANKSsssssss.
Thank you, thank you , thank you sooo much......

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

回答 (0 件)

カテゴリ

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

質問済み:

2020 年 10 月 21 日

コメント済み:

2020 年 10 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by