Execution of script mobilnetv2 as a function is not supported:
1 次查看(过去 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?
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!