ImportError: No module named 'onnx_backend'?

ImportError: No module named 'onnx_backend'?

我已经从 URL https://github.com/onnx/onnx , now trying to run some models form here https://github.com/onnx/models#face_detection 安装了 ONNx,问题是导入时:

import numpy as np
import onnx

它有效,但是当我尝试导入时

import onnx_backend as backend

它给我以下错误

Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import onnx_backend as backend
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'onnx_backend'

否则我可以毫无错误地加载模型;如何纠正导入错误?

尝试使用 -

from onnx import backend

而不是

import onnx_backend as back