画像分類 評価 検証

ディープラーニングにより画像分類をして
最後検証を行うと思ったのですができないです.
学習後のデータを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));

 Accepted Answer

Kojiro Saito
Kojiro Saito on 15 Jul 2022

0 votes

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

More Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Products

Release

R2022a

Asked:

on 15 Jul 2022

Answered:

on 15 Jul 2022

Community Treasure Hunt

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

Start Hunting!