Execution of script vgg16 as a function is not supported:

1 回表示 (過去 30 日間)
Rallapalli Sethumadhavi
Rallapalli Sethumadhavi 2021 年 4 月 28 日
回答済み: Kojiro Saito 2021 年 5 月 6 日
When I am trying to execute the vgg16 in matlab in IOS, I am getting this error.
Execution of script vgg16 as a function is not supported:
Error in vgg16own (line 16)
net = vgg16;

回答 (1 件)

Kojiro Saito
Kojiro Saito 2021 年 5 月 6 日
I was able to reproduce this issue if vgg.m exists on somewhere in MATLAB search path.
Could you check you have custom vgg16.m?
which vgg16 -all
If it returns only the following,
MATLAB_INSTALL\toolbox\nnet\cnn\spkgs\vgg16.m % Shadowed
it will work well.
But if there is another vgg16.m and it is a script not a function, it will occur "Execution of script vgg16 as a function is not supported:" error.
Try renaming you custom vgg16.m to vgg16_custom.m and then, compiling your code again.

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by