1.When I install caffe2 and onnx with conda
conda install -c caffe2 caffe2
conda install -c conda-forge onnx
conda install -c conda-forge protobuf numpy
python -c "import onnx"
#### this error occurs
Segmentation fault
and
python
(1)import caffe2.python.onnx.frontend
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named 'caffe2.python.caffe2_pybind11_state_gpu'
Segmentation fault
(2)import caffe2.python.onnx.backend
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode
WARNING:root:Debug message: No module named 'caffe2.python.caffe2_pybind11_state_gpu'
Segmentation fault
python 3.6.3
onnx 1.1.1
Could you please advice to solve out this error
Thank you
Check the conversation in this issue - https://github.com/onnx/onnx/issues/875
I think #1026 may be related to this.
You can do:
from caffe2.python import onnx
from onnx import backend
@sgarcia22 It works, but there is no prepare module:
AttributeError: 'module' object has no attribute 'prepare'
Most helpful comment
You can do:
from caffe2.python import onnx
from onnx import backend