Execution of script mobilnetv2 as a function is not supported:

1 visualización (últimos 30 días)
NoYeah
NoYeah el 16 de Mzo. de 2023
Comentada: NoYeah el 17 de Mzo. de 2023
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?

Respuesta aceptada

Jinal
Jinal el 16 de Mzo. de 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.
  1 comentario
NoYeah
NoYeah el 17 de Mzo. de 2023
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by