ALEXNET TRANSFER LEARNING WITH GUI

1 回表示 (過去 30 日間)
OYENIRAN OLUWASHINA
OYENIRAN OLUWASHINA 2020 年 6 月 18 日
Good day everyone, I am Oluwashina. I have been working on AlexNet transfer learning for some week with Matlab R2018a, the console application work very well but doing the same with GUI is reporting errors that I am unable to fix.
Below is the error reported:
Error using classify (line 123)
Requires at least three arguments.
Error in MULTIMODAL_FIGURE>MATCHING_Callback (line 64)
predict = classify(newnet,irisImg);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in MULTIMODAL_FIGURE (line 17)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MULTIMODAL_FIGURE('MATCHING_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Please help me, where did I go wrong?
function MATCHING_Callback(hObject, eventdata, handles)
global iris
global face
global newnet
%global predict
clc;
tic;
irisImg = imresize(iris,[227 227]);
%it flag error at "predict = classify(newnet,irisImg);"
predict = classify(newnet,irisImg);
figure(5)
subplot(1,2,1)
imshow(irisImg)
title(string(predict));
faceImg = imresize(face,[227 227]);
predict = classify(newnet,faceImg);
figure(5)
subplot(1,2,2)
imshow(faceImg)
title(string(predict));
toc;

回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by