How to pass neural network model as handle for GUI - it always says can't identify!

1 回表示 (過去 30 日間)
Lucky
Lucky 2022 年 10 月 13 日
コメント済み: Lucky 2022 年 10 月 13 日
Hello guys, I have trained a model, and my testing and training parts worked fine. But when I tried to make a GUI, there is something wrong with the code.
For Minist_LeNet5, this is because my trained model is called this name. But the line that causes problem is "Minist_LeNet5 = handles.Minist_LeNet5;", it says cannot identify Minist_LeNet5
I don't know what is the problem.
function untitled1_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
load Minist_LeNet5
Minist_LeNet5 = handles.Minist_LeNet5;
axes1 = gca;
axes1.XAxis.Visible = "off";
axes1.YAxis.Visible = "off";
% Update handles structure
guidata(hObject, handles);

回答 (1 件)

David Willingham
David Willingham 2022 年 10 月 13 日
I believe it should be:
handles.Minist_LeNet5 = Minist_LeNet5;
  1 件のコメント
Lucky
Lucky 2022 年 10 月 13 日
Hello David,
I tried it but it still responds with the same error:can't identify :(

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

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by