Filter löschen
Filter löschen

Load pre-trained neural net in app designer

2 Ansichten (letzte 30 Tage)
Marius Bledea
Marius Bledea am 5 Jul. 2020
Beantwortet: Gouri Chennuru am 10 Jul. 2020
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?

Antworten (1)

Gouri Chennuru
Gouri Chennuru am 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 !

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by