Effacer les filtres
Effacer les filtres

Load pre-trained neural net in app designer

1 vue (au cours des 30 derniers jours)
Marius Bledea
Marius Bledea le 5 Juil 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?

Réponses (1)

Gouri Chennuru
Gouri Chennuru le 10 Juil 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 !

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by