Execution of script mobilnetv2 as a function is not supported:

4 次查看(过去 30 天)
Hi I am trying to use mobilenetv2
so I typed the below code in my matlab 2023b desktop
mynet = mobilenetv2;
and it occurs the error below
Execution of script mobilnetv2 as a function is not supported:
C: my_mlx_file_path\who_cares\mobilenetv2.mlx
in online editor, it doesn`t occurs error
I have checked Add-on list for check
and reinstalled "Deep Learning Toolbox" and "Deep Learning Toolbox model for MobileNet-v2 Network"
and I got the same error...
I have used other form refering mobilenetv2 document
mynet = mobilenetv2('Weights',some_arbitary_weights);
or
mynet = mobilenetv2();
they also occurs error
How to solve my error?

采纳的回答

Jinal
Jinal 2023-3-16
Hi,
I understand that you are facing errors while using ‘mobilenetv2’ function despite having installed the ‘Deep Learning Toolbox model for MobileNet-v2 Network’.
You can check for any other files existing with the same name shadowing the built-in ‘mobilenetv2’ function. You can do this by typing the following command in your MATLAB command window.
which mobilenetv2 -all
Please note that the filepath for the internal ‘mobilenetv2’ function would like: C:\Program Files\MATLAB\R2022b\toolbox\nnet\cnn\spkgs\mobilenetv2.m
If multiple files exist, you will be required to use a different filename for all the files which do not implement MATLAB’s internal ‘mobilenetv2’ function.
Once all conflicts are resolved, you will be able to use ‘mobilenetv2’ on your MATLAB Desktop.
Hope this helps.
  1 个评论
NoYeah
NoYeah 2023-3-17
I have found that the script name is exactly eqaul to the addon script name that`s why matlab made an error lol what a idiot mistake

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by