Export Faster R-CNN to ONNX

2 views (last 30 days)
Hui Yin Lee
Hui Yin Lee on 25 Dec 2018
Commented: Ting Su on 23 Aug 2019
Hi, I am trying to convert my trained faster R-CNN model to ONNX in order to export to other framework. However, i get the error as below:
Error using
nnet.internal.cnn.onnx.exportONNXNetwork>iValidateNetwork (line
35)
Network argument must be a DAGNetwork or a SeriesNetwork.
Error in nnet.internal.cnn.onnx.exportONNXNetwork>iValidateInputs
(line 28)
NNTNetwork = iValidateNetwork(NNTNetwork);
Error in nnet.internal.cnn.onnx.exportONNXNetwork (line 7)
[NNTNetwork, Filename, NetworkName] = iValidateInputs(NNTNetwork,
Filename, varargin{:});
Error in exportONNXNetwork (line 34)
nnet.internal.cnn.onnx.exportONNXNetwork(Network, filename,
varargin{:});
Is it mean the faster R-CNN model not a DAGnetwork? Is there any way to solve this problem? Appreciate for the help
  2 Comments
Jon N
Jon N on 1 Feb 2019
I too have been trying to export a faster R-CNN model to ONNX. Just a basic model that was trained with trainFasterRCNNObjectDetector. MATLAB throws errors that some layers aren't supported, and thus I cannot use the exported ONNX model. At this point I am wondering what is the point of using MATLAB for deep learning if I cannot deploy these models in other frameworks.
Ting Su
Ting Su on 23 Aug 2019
Hi, Hui and Jon,
We are looking at supporting the export of objection detection models.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!