onnx / models

A collection of pre-trained, state-of-the-art models in the ONNX format
http://onnx.ai/models/
Apache License 2.0
7.5k stars 1.36k forks source link

convert onnx/modelzoo/shuffnet.onnx failed #109

Open cswwp opened 5 years ago

cswwp commented 5 years ago

I want to convert onnx model zoo shufflenet model.onnx to caffe2 init.pb and predict.pb, but it show error as follows:

File "demo.py", line 30, in init_net, predict_net = c2.onnx_graph_to_caffe2_net(model) File "/home/parker/anaconda2/envs/demo/lib/python3.6/site-packages/caffe2/python/onnx/backend.py", line 940, in onnx_graph_to_caffe2_net return cls._onnx_model_to_caffe2_net(model, device=device, opset_version=opset_version, include_initializers=True) File "/home/parker/anaconda2/envs/demo/lib/python3.6/site-packages/caffe2/python/onnx/backend.py", line 933, in _onnx_model_to_caffe2_net raise RuntimeError('ONNX conversion failed') RuntimeError: ONNX conversion failed

anyone help?

prasanthpul commented 5 years ago

Looks like you are converting from ONNX to Caffe2? This looks like an issue in Caffe2 and should be raised in the Caffe2 GitHub. You can also make sure you are using the model corresponding to the ONNX version supported by Caffe2.