onnx export to openvino
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I tried to reproduce the tutorial https://ch.mathworks.com/matlabcentral/fileexchange/70330-matlab-to-openvino-intel-inteference with current software:
- Matlab 2019a
- DeeplabV3+
- OpenVino 2019 R2
- Ubuntu 16.04 LTS
For Matlabs ONNX export I tested opset version 6,7 and 9. All of them give the following error during model optimizer step:
vision@ubuntu:~/wam0101$ /opt/intel/openvino_2019.2.242/deployment_tools/model_optimizer/mo.py --input_model ~/wam0101/skynet-v7.onnx --data_type FP16
Model Optimizer arguments:
Common parameters:
- Path to the Input Model: /home/vision/wam0101/skynet-v7.onnx
- Path for generated IR: /home/vision/wam0101/.
- IR output name: skynet-v7
- Log level: ERROR
- Batch: Not specified, inherited from the model
- Input layers: Not specified, inherited from the model
- Output layers: Not specified, inherited from the model
- Input shapes: Not specified, inherited from the model
- Mean values: Not specified
- Scale values: Not specified
- Scale factor: Not specified
- Precision of IR: FP16
- Enable fusing: True
- Enable grouped convolutions fusing: True
- Move mean values to preprocess section: False
- Reverse input channels: False
ONNX specific parameters:
Model Optimizer version: 2019.2.0-436-gf5827d4
[ ERROR ] Concat input shapes do not match
[ ERROR ] Shape is not defined for output 0 of "dec_cat1".
[ ERROR ] Cannot infer shapes or values for node "dec_cat1".
[ ERROR ] Not all output shapes were inferred or fully defined for node "dec_cat1".
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #40.
[ ERROR ]
[ ERROR ] It can happen due to bug in custom shape infer function <function concat_infer at 0x7fac2be730d0>.
[ ERROR ] Or because the node inputs have incorrect values/shapes.
[ ERROR ] Or because input shapes are incorrect (embedded to the model or passed via --input_shape).
[ ERROR ] Run Model Optimizer with --log_level=DEBUG for more information.
[ ERROR ] Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): Stopped shape/value propagation at "dec_cat1" node.
Attached is the full debug output.
- Is it possible the shapes are not correctly defined in Matlabs ONNX export?
- What could be done to solve this issue?
Regards, Markus
2 个评论
Maria Duarte Rosa
2019-8-9
Hi Markus,
Are you able to reproduce the tutorial if you use one of our pretrained models, such as googlenet? Is this just a problem when you use ONNX?
Thanks.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Code Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!