Deep Learning network Train

조회 수: 3 (최근 30일)
Dp
Dp 2020년 10월 14일
댓글: Dp 2020년 10월 28일
Hi all
Below is my code, I have train a network with 93.50% acc. after training when use to classify a single image it's giving me an error
"Unable to resolve the name net.Layers.
Error in Object_detection_using_train_network (line 5)
inputSize = net.Layers(1).InputSize;"
any help would be appreciated.
load('ScrewQuality9350_net.mat'); % I used 220X220 size of Image at the time of network training
%net = net.data; %'ScrewQualityCheckTraining9350_Net';
I = imread('WIN_20201013_19_18_53_Pro.jpg'); %Here, I am using 2448X3680 size of Image to identify the class
inputSize = net.Layers(1).InputSize;
I = imresize(I,inputSize(1:2));
label = classify(net,I);
figure
imshow(I)
title(string(label)

채택된 답변

Srivardhan Gadila
Srivardhan Gadila 2020년 10월 28일
Make sure that the file 'ScrewQuality9350_net.mat' has the SeriesNetwork or a DAGNetwork object with name "net".
It seems that there isn't any variable or object named "net" in the workspace after loading the file: 'ScrewQuality9350_net.mat'.
  댓글 수: 1
Dp
Dp 2020년 10월 28일
Thanks Srivardhan Gadila it's work when I
take variable net = trainedNetwork_1;
Thanks heaps
DP

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by