snpe-onnx-to-dlc运行错误:

云云云 2024-08-09 14:13:32

snpe-onnx-to-dlc运行错误:
我有两个同一模型的变体:Zoe1.onnx 和 Zoe2.onnx(主要是相同的模型,只有少数几层不同)
一个测试图像 image1.png => image1.raw
我使用相同的命令将两个模型从 onnx 转换为 dlc
snpe-onnx-to-dlc Zoe1.onnx => Zoe1.dlc
snpe-onnx-to-dlc Zoe2.onnx => Zoe2.dlc
我使用相同的命令运行两个 onnx 模型
run_onnx.sh Zoe1.onnx image1.png => result1
run_onnx.sh Zoe2.onnx image1.png => result2
我使用相同的命令在计算机 CPU 上运行两个 dlc 模型
snpe-net-run Zoe1.dlc image1.raw => result1
snpe-net-run Zoe2.dlc image1.raw => NOT result2(无法识别)
我怀疑在将 Zoe2.onnx 转换为 dlc 的过程中可能出了问题,但我使用的过程与 Zoe1 完全相同
不确定下一步该怎么做?

...全文
1089 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38498942 2024-08-13
  • 打赏
  • 举报
回复

可以使用这个命令运行:

snpe-onnx-to-dlc --input_network Zoe1.onnx --output_path Zoe1.dlc --input_dim input "1,3,256,256" -n
snpe-onnx-to-dlc --input_network Zoe2.onnx --output_path Zoe2.dlc --input_dim input "1,3,256,256" -n

snpe-net-run --container Zoe1.dlc --input_list im1.txt
snpe-net-run --container Zoe2.dlc --input_list im1.txt

2,851

社区成员

发帖
与我相关
我的任务
社区描述
本论坛以AI、WoS 、XR、IoT、Auto、生成式AI等核心板块组成,为开发者提供便捷及高效的学习和交流平台。 高通开发者专区主页:https://qualcomm.csdn.net/
人工智能物联网机器学习 技术论坛(原bbs) 北京·东城区
社区管理员
  • csdnsqst0050
  • chipseeker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧