DELG onnx模型check报错

用户您好,请详细描述您所遇到的问题:

使用docker镜像openexplorer/ai_toolchain_centos_7_xj3:v2.2.3a,执行DELG模型(见附件)转换前的check操作,

check脚本如下:

#!/bin/bash

model_type=onnx

march=bernoulli2

onnx_model=./delg50.fixed.onnx

input_node1=input_image:0

input_shape1=224x224x3

input_node2=input_scales:0

input_shape2=7

input_node3=input_max_feature_num:0

input_shape3=1

input_node4=input_abs_thres:0

input_shape4=1

input_node5=input_global_scales_ind:0

input_shape5=3

output=out

hb_mapper checker --model-type ${model_type} \

--march ${march} \

--model ${onnx_model} \

--input-shape ${input_node1} ${input_shape1} \

--input-shape ${input_node2} ${input_shape2} \

--input-shape ${input_node3} ${input_shape3} \

--input-shape ${input_node4} ${input_shape4} \

--input-shape ${input_node5} ${input_shape5} \

--output ${output}

报错如下:

Failed to load model with error: Missing opset in the model. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported.

2022-09-15 10:56:12,295 ERROR There is an error in pass:constant_folding. Error message:Failed to load model with error: Missing opset in the model. All ModelProtos MUST have at least one entry that specifies which version of the ONNX OperatorSet is being imported.

具体日志见附件。

问题:

1、确认是否支持带分支的模型?

无标题1_20220915114425.jpg

模型文件较大,传不上来

您好,根据您的报错信息提示,是导出onnx模型缺少opset信息的问题,请问您是使用opset10或opset11导出的模型吗?

关于您说的带分支的模型,可以具体描述一下您说的这个分支的含义吗?或者可以提供netron工具可视化模型结构,截图说明一下您说的这个分支结构嘛?

抱歉哈,目前尚不支持