74 Star 218 Fork 167

Ascend / modelzoo

 / 详情

yolov4模型转换失败

DONE
Bug-Report
创建于  
2021-04-02 17:55

论坛用户问题,帖子链接:https://bbs.huaweicloud.com/forum/thread-117996-1-1.html
将darknet下的yolov4模型转换为onnx模型,然后利用ATC将onnx转换为om文件失败
版本:20.1
报错日志如下:
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E19000: Path[/home/HwHiAiUser/Ascend/ascend-toolkit/20.1.rc1/x86_64-linux/opp/op_impl/custom/ai_core/tbe/config/ascend310]'s realpath is empty, errmsg[The file path does not exist.]
E19010: Check op[ConstantOfShape_451]'s type[ai.onnx::11::ConstantOfShape] failed, the type is unsupported.
E19010: Check op[Where_455]'s type[ai.onnx::11::Where] failed, the type is unsupported.
E19010: Check op[Expand_456]'s type[ai.onnx::11::Expand] failed, the type is unsupported.
E19010: Check op[ConstantOfShape_539]'s type[ai.onnx::11::ConstantOfShape] failed, the type is unsupported.
E19010: Check op[Where_543]'s type[ai.onnx::11::Where] failed, the type is unsupported.
E19010: Check op[Expand_544]'s type[ai.onnx::11::Expand] failed, the type is unsupported.

模型链接如下:
链接:https://pan.baidu.com/s/1oFv9fKBXZMsb0a6M81_6uw
提取码:h25p
atc指令:atc --model=yolov4_1_3_608_608_static.onnx --framework=5 --output=yolov4_e --input_format=NCHW --soc_version=Ascend310 --input_shape="input:1,3,608,608" --out_nodes="Conv_589:0;Conv_612:0;Conv_635:0"

附件
zhujianpeng 2021-04-06 10:40

评论 (8)

Tixuan 创建了Bug-Report
Tixuan 关联仓库设置为Ascend/modelzoo
Tixuan 修改了描述
展开全部操作日志

你好,在最新cann版本复现了你的问题,关键报错如下,你上述的onnx不支持问题,已完善,我们会尽快分析回复。
[ERROR] TBE(36940,atc.bin):2021-04-05-18:36:33.622.252 [/home/jenkins/agent/workspace/Compile_Canndev_Centos_X86/canndev/ops/built-in/op_proto/array_ops.cc:2253][OP_PROTO] ExpandInferShape:2253 OpName:[Expand_456] "Get constValue failed of [shape]"

你好,请问有解决办法吗?

zhujianpeng 上传了附件cann3.3复现log.txt
zhujianpeng 负责人设置为镇亮
zhujianpeng 任务状态TODO 修改为Analysing

好的,谢谢你

先安装onnxsim:pip3 install onnx-simplifier
再运行如下命令:python3 -m onnxsim --skip-optimization src.onnx dst.onnx 完成简化
最后进行atc命令转换

你好,按照你说的安装onnxsim简化之后的模型可以转换成功,谢谢!

好的,请关闭issue。如下图设置为done状态
输入图片说明

镇亮 任务状态Analysing 修改为DONE
吴定远 关联仓库Ascend/modelzoo-his 修改为Ascend/modelzoo

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
1
https://gitee.com/ascend/modelzoo.git
git@gitee.com:ascend/modelzoo.git
ascend
modelzoo
modelzoo

搜索帮助