Faster RCNN classifier to ONNX format
1 次查看(过去 30 天)
显示 更早的评论
Hello all;
I want to export a gesture detector programmed in MATLAB using Deep Learning toolbox to deploy it to another platform, in my case the Neural Compute Stick 2 from INTEL (using openvino framework...).
I have the code and the trained "detector" (output of trainFasterRCNNObjectDetector) in a MAT file. My idea is to export this detector to an ONNX format.
The doubt I have is: The exported "detector" is the whole FasterRCNN architecture, or only the CNN in charge of classifying the objects inside the Faster RCNN architecture?
If I export the detector, should I implement the fasterRCNN algorithm to use the Network exported?
And last but not least : Is there a tool or procedure to to this port more straight forward?
THank you all in advance
采纳的回答
Raynier Suresh
2020-3-26
The “exportONNXNetwork(net,filename)” could be used to export the deep learning network net with weights to the ONNX format, but this function does not support all the deep learning layers. If you export a network that contains a layer that the ONNX format does not support, then exportONNXNetwork saves a placeholder ONNX operator in place of the unsupported layer and returns a warning. You cannot import an ONNX network with a placeholder operator into other deep learning frameworks. “RegionProposalLayer” in RCNN is not supported by the exportONNXNetwork function thus it will keep a place holder operator at that position, hence you cannot use it in other deep learning frameworks .However you can export a YOLO Object Detection Network to ONNX model format.
Refer to the below links for more information:
ExportONNXNetwork: https://www.mathworks.com/help/deeplearning/ref/exportonnxnetwork.html#d120e36378
Export YOLO v2 Object Detector to ONNX: https://www.mathworks.com/help/vision/examples/export-yolo-v2-object-detector-to-onnx.html
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!