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

add onnx dependency for x2paddle (#1160)

* add denpendency

* add onnx dependency

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