필터 지우기
필터 지우기

can anyone tell the code for save and test the neural network??

조회 수: 2 (최근 30일)
Deepika B
Deepika B 2020년 3월 13일
답변: Harsha Priya Daggubati 2020년 3월 16일
I think so ,My model is not overfitting but when the net is saved and test using classify syntax the testing fails,,, what is that means?
confusion matrix overall accuracy is 87% but testing get fails? what is the reason behind this ? Is this is related to test image or there is a problem in the save and test of a neural network ?
code for save the net and test :
load res1.mat;
imgpath='C:\Users\Administrator\m\'; % the folder in which ur images exists
am=dir([imgpath '*.jpg']);
for i = 1 : 30
a{i}=imread([imgpath am(i).name]);
label = classify(net1,a{i});
figure
imshow(a{i})
title(char(label));
end

답변 (1개)

Harsha Priya Daggubati
Harsha Priya Daggubati 2020년 3월 16일
Hi,
I guess there is nothing wrong with your network. You should try giving your network a unique name while saving, and use your network name after loading to classify the test images instead of using 'classify' method.
Refer to the thread:
Hope this helps!

카테고리

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