未验证 提交 9a16e460 编写于 作者: C chenjian 提交者: GitHub

add onnx dependency for x2paddle (#1160)

* add denpendency

* add onnx dependency

* add onnx requirement
上级 7bde440e
......@@ -12,3 +12,4 @@ multiprocess
packaging
x2paddle
rarfile
onnx >= 1.6.0
\ No newline at end of file
......@@ -59,7 +59,7 @@ class ModelConvertApi(object):
import onnx # noqa: F401
except Exception:
raise RuntimeError(
"[ERROR] onnx is not installed, use \"pip install onnx==1.6.0\"."
"[ERROR] onnx is not installed, use \"pip install onnx>=1.6.0\"."
)
onnx2paddle(fp.name, tmpdirname)
elif format == 'caffe':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册