Unrecognized function or variable 'trainedNetwork_3'

조회 수: 1 (최근 30일)
Luc Xuan Bui
Luc Xuan Bui 2021년 8월 12일
댓글: Luc Xuan Bui 2021년 8월 15일
What is the reason of that error and how can i fix it.
I loaded network (alexnet) , and i saved trainedNetwork_3 in CL_ban_ky.mat
When i run it, I had error.
But when I run load('CL_ban_ky.mat'); alone
After that I run train2.m, everything is well
I don't know what's happen!!!
Please help me! Thanks very much!!!

답변 (1개)

Walter Roberson
Walter Roberson 2021년 8월 12일
When you assign the output of load() to a variable, it creates a struct with one field for each variable it loaded, and does not create a variable with that name in the workspace.
You should change to
[YPred, probs] = classify(net.trainedNetwork_3, I);
  댓글 수: 4
Walter Roberson
Walter Roberson 2021년 8월 12일
kq_alexnet = (string(label) + ", " + num2str(100*max(probs),3) + "%");
Luc Xuan Bui
Luc Xuan Bui 2021년 8월 15일
tks so much

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

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by