ディープラーニングにより画像分類をして
最後検証を行うと思ったのですができないです.
学習後のデータをsave('sindou.mat','net','-v7.3');で保存しているつもりなのですが。
こちらの最後の検証を参考にしたのですがnetから検証しているため自分のデータのみで検証したいと考えています。
a_image = [224,224,3];
im_test = imread("test110%.jpg");
im=imresize(im_test,a_image(1:2));
figure(1);
image(im);
label=classify(sindou,im);
関数または変数 'sindou' が認識されません。
title(char(label));

 Réponse acceptée

Kojiro Saito
Kojiro Saito le 15 Juil 2022

0 votes

save('sindou.mat','net','-v7.3')では、ファイル名はsindou.matとなりますが、中に含まれる変数名netとなっています。
load('sindou.mat')
の後、ワークスペースを見るとnetという変数があると思います。
classifyの第1引数をnetに変更してみてください。
label=classify(net,im);

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2022a

Community Treasure Hunt

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

Start Hunting!