How can I use importONNXNetwork function on a production machine which only has MCR installed

3 vues (au cours des 30 derniers jours)
Hi,
I want to use a pre-trained ONNX neural network on a production machine (PC) which only has MCR no Matlab. I tested my code in my development machine with MATLAB Version: 9.7.0.1190202 (R2019b), there was no problem. But once I complied it into a .net assembly and tried to use it on the production machine, it threw an error:
importONNXNetwork: importONNXNetwork requires the Deep Learning Toolbox Converter for ONNX Model Format support package. To install this support package, use the <a href="matlab: matlab.addons.supportpackage.internal.explorer.showSupportPackages('ONNXCONVERTER', 'tripwire')">Add-On Explorer</a>.
I think the problem is that the add-on "Deep Learning Toolbox Converter for ONNX Model" is not installed on the production machine. In contrast, my code can run without issue on my development machine because "Deep Learning Toolbox Converter for ONNX Model" is installed there.
How can I install the add-on "Deep Learning Toolbox Converter for ONNX Model" on the production machine with MCR? Or is there any other way to use a pre-trained ONNX or other types of neural network on a production machine (PC) which only has MCR no Matlab?
Thank you!

Réponse acceptée

CHANGYUAN
CHANGYUAN le 22 Jan 2020
Thanks to the support from Sandesh Joshi at MathWorks Technical Support Department. It worked when I followed his instruction.
Add the following in the "Additional parameters passed to mcc" section in the settings page of library compiler:
-a C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\nnet\supportpackages\onnx -a C:\ProgramData\MATLAB\SupportPackages\R2019b\resources\nnet_cnn_onnx
  2 commentaires
Sebastien Rajeul
Sebastien Rajeul le 14 Août 2020
Thanks!! This solved my similar issue with googlenet that was working fine within matlab but not in deployed mode using the MCR.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by