Unrecognized function or variable 'trainedNetwork_3'

1 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by