Load pre-trained neural net in app designer

9 views (last 30 days)
Hi. In the startUpFcn(app) I have the following working code:
data = load('semantic_seg_resnet18_kvasir_aug_trained.mat');
app.segmantationNet = data.net;
data = load('inceptionv3_trained.mat');
app.classificationNet = data.net;
data = app.getScreenSize;
app.widthScreen = data(1);
app.heightScreen = data(2);
app.inputSizeClassification = app.classificationNet.Layers(1).InputSize;
and this is the getScreenSize function
function results = getScreenSize(app)
set(0,'units','pixels')
dimensions = get(0,'screensize');
results = dimensions(3:4);
end
Everything is working fine, but when I install the app on my pc/ another pc, it doesn't load the neural nets. Any idea how can I load those 2 variables?

Answers (1)

Gouri Chennuru
Gouri Chennuru on 10 Jul 2020
Hi Marius,
As per my understanding, make sure that the .mat file in the same directory when installing the application in PC.
You can go through this link when installing the application and make sure you attach the .mat files.
Hope this Helps !

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!