Application Compiler, error with an executable : importONNXNetwork requires the Deep Learning Toolbox Converter for ONNX Model
이전 댓글 표시
I am trying to make an executable of a Matlab code using the Deep Learning Toolbox with Application Compiler.
The created executable make an error and display the following message:
I have checked on the Add-On Explorer, the "Deep Learning Toolbox Converter for ONNX Model Format " is installed on my Matlab and the importONNXNetwork.m is automatically added to the list of "Files required for your application to run" in the Application Compiler.
The line 5 of test.m is the only use of the importONNXNetwork function:
modelfile = "AlexNet_pretrain_and_fit.onnx";
%testvie = uigetfile(pwd, "Neural network file");
classes = {'-1' '0' '1'};
outputtype = 'classification';
net = importONNXNetwork(modelfile,'OutputLayerType','classification',"Classes", classes) %line 5
To solve my problem I tried to:
- Put the toolxbox folder in the same directory than test.m and compile.
- Put the importONNXNetwork.m file in the same folder and add it to the list of files required for my application to run in the Application Compiler.
- I check that Deep Learning Toolbox is supported by Application compiler, not all command are supported but I seem ok for importONNXNetwork.
댓글 수: 2
Hari Krishna Ravuri
2020년 1월 6일
I'm unable to reproduce this behaviour on my side.Please provide reproductoin steps.
Leopold LR
2020년 1월 6일
답변 (5개)
CHANGYUAN
2020년 1월 23일
1 개 추천
Hi Leopold ,
I ran into the similar issue, and it got fixed. You may refer to my question and answer:
Yusuke Konno
2019년 12월 5일
0 개 추천
I have same issue.
Hari Krishna Ravuri
2020년 1월 7일
0 개 추천
I have heard that this issue is known and the concerned parties may be investigating further.
Jan
2020년 1월 21일
0 개 추천
I just ran into the same issue when trying to deploy a Matlab executable for DeepLearning.
HR, since this appears to be a known problem, could you give us an estimate on a fix?
Thanks!
댓글 수: 2
CHANGYUAN
2020년 1월 23일
Hi Jan,
I ran into the similar issue, and it got fixed. You may refer to my question and answer:
misbah khan
2021년 2월 4일
'imageInputLayer' requires Deep Learning Toolbox.
i have this problem how i solve this?
Sivylla Paraskevopoulou
2022년 5월 9일
0 개 추천
The Deploy Imported Network with MATLAB Compiler example can help you with your workflow. If you are using a MATLAB version older than R2021b, you must manually specify the path to the ONNX layers folder. Note that you can deploy only the imported network using MATLAB Compiler. You cannot deploy import functions, such as importTensorFlowNetwork and importONNXNetwork.
댓글 수: 6
Nicola Franzoso
2022년 9월 26일
Sorry, you say thats impossibile use the application compiler with code that have inside importONNXNetwork?
R2022b Bye
Sivylla Paraskevopoulou
2022년 9월 26일
You cannot deploy the importONNXNetwork function. You can only deploy the network that the function imports.
Nicola Franzoso
2022년 9월 26일
Thanks Sivylla, exist some sample of it?
Nicola Franzoso
2022년 9월 26일
... just save the net and reload it ?
Sivylla Paraskevopoulou
2022년 9월 26일
I think you will find this example helpful: Deploy Imported TensorFlow Model with MATLAB Compiler
Nicola Franzoso
2022년 9월 27일
Thanks Sivylla, it's so simple, i'm lost in a glass of water.
Bye
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!