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 CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by