standalone desktop - loading mat file error

when i start the stand alone app and uploading mat file i get:
Warning: Variable 'lgraph_1' originally saved as a nnet.cnn.LayerGraph cannot be instantiated as an object and will be read in as a uint32.
Warning: Variable 'net' originally saved as a DAGNetwork cannot be instantiated as an object and will be read in as a uint32.
Warning: Variable 'options' originally saved as a nnet.cnn.TrainingOptionsSGDM cannot be instantiated as an object and will be read in as a uint32.
Error using classify (line 123)
Requires at least three arguments.
the code is:
[filename, pathname] = uigetfile({'*.mat'},'Choose Model - .mat File');
fullFileName = fullfile(pathname, filename);
app.Model=load(fullFileName);
and the classify is:
label = classify(app.Model.net,img);
in appdesigner its work when i start the stnadalone its not working.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by