具体报错内容如下:
HwHiAiUser@davinci-mini:~/code$ atc --input_shape="imageinput:1,1,1,512" --output="./sanlei_sf" --soc_version=Ascend310 --framework=5 --model="./sanlei_sf.onnx" ATC start working now, please wait for a moment.
...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E16005: The model has [2] [--domain_version] fields, but only one is allowed.
TraceBack (most recent call last):
Model parse to graph failed, graph name:sanlei_sf.[FUNC:ModelParseToGraph][FILE:onnx_parser.cc][LINE:924]
ATC model parse ret fail.[FUNC:ParseGraph][FILE:omg.cc][LINE:791]
找到以下方法说是可以解决以上问题
镇亮/MagicONNX - 码云 - 开源中国 (gitee.com)
但是在安装的过程中,一直重复安装onnx-simplifier,导致magiconnx一直安装失败。
HwHiAiUser@davinci-mini:~/code$ atc --input_shape="imageinput:1,1,1,512" --output="./sanlei_sf" --soc_version=Ascend310 --framework=5 --model="./sanlei_sf.onnx" ATC start working now, please wait for a moment.
...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E16005: The model has [2] [--domain_version] fields, but only one is allowed.
TraceBack (most recent call last):
Model parse to graph failed, graph name:sanlei_sf.[FUNC:ModelParseToGraph][FILE:onnx_parser.cc][LINE:924]
ATC model parse ret fail.[FUNC:ParseGraph][FILE:omg.cc][LINE:791]
找到以下方法说是可以解决以上问题
镇亮/MagicONNX - 码云 - 开源中国 (gitee.com)
但是在安装的过程中,一直重复安装onnx-simplifier,导致magiconnx一直安装失败。