Too Many I/Ps
이전 댓글 표시
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
2020년 10월 21일
Can you show the output of
which trainNetwork
REN Jain
2020년 10월 21일
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
2020년 10월 21일
REN Jain
2020년 10월 21일
REN Jain
2020년 10월 21일
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
2020년 10월 21일
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
2020년 10월 22일
REN Jain
2020년 10월 22일
REN Jain
2020년 10월 22일
Ameer Hamza
2020년 10월 22일
I suggest you reinstall MATLAB completely. Deletes the current files and then reinstall.
REN Jain
2020년 10월 22일
REN Jain
2020년 10월 22일
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
2020년 10월 23일
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
2020년 10월 23일
Ah!! This must be it. I didn't realize there is also a
dbstop if caught error
REN Jain
2020년 10월 23일
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
2020년 10월 24일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





