ALEXNET TRANSFER LEARNING WITH GUI
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!