Execution of script mobilnetv2 as a function is not supported:
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
Jinal
on 16 Mar 2023
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.
More Answers (0)
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!