run importONNXLayers on the PC without Deep Learning Toolbox Converter for ONNX Model Format

I installed the Deep Learning Toolbox Converter for ONNX Model Format toolbox on my PC, I can run importONNXLayers on my PC.
Then I build a MATLAB executable .exe to run on another PC (Mathworks Matlab Runtime R2022a is installed) without Deep Learning Toolbox Converter for ONNX Model Format, the exe crash with the following information:
*ERROR: Undefined function 'importONNXLayers' ...
I want to know how to resolve this issue. Matlab experts please help me. Thanks.

 Réponse acceptée

Hi Bo,
You can deploy only the imported network using MATLAB Compiler. You cannot deploy import functions, such as importTensorFlowNetwork and importONNXNetwork. For more details, see Deploy Imported TensorFlow Model with MATLAB Compiler.

5 commentaires

Thanks your reply, it's really help me.
I meet another issue. I already installed this toolbox, but Matlab always report error:
Error using importONNXLayers
importONNXLayers requires the Deep Learning Toolbox Converter for ONNX Model Format support package. To install this support package, use the Add-On Explorer.
Error in loadONNXModel (line 4)
netLayers = importONNXLayers(modelFolder, InputDataFormats='BC');
Hi Bo, the error is telling you that you have not installed the support package Deep Learning Toolbox Converter for ONNX Model Format, which is necessary to run the functions importONNXLayers, importONNXNetwork, and exportONNXNetwork.
You can use the Add-On Explorer to install the support package. For more information on the Add-On Explorer, see Get and Manage Add-Ons.
hi, thanks your reply.
Now I have a another question.
I installed Matlab R2022a on my PC, Deep Learning Toolbox is also installed. I used the functions of Deep Learning Toolbox in my code, then build a Matlab executable.
I want to run this Matlab executable on another PC, Matlab Runtime R2022a is installed on this PC, I found Deep Learning Toolbox is not installed, Matlab executable crash when running on this PC.
Do you know how to install Deep Learning Toolbox in Matlab Runtime? or how can I run the executable on the PC without Deep Learning Toolbox installed?
Thanks.
A standalone executable you create with MATLAB Compiler is independent of MATLAB, so you should be able to run it even if you don't have MATLAB desktop installed.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Produits

Version

R2022a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by