Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导出onnx可以设置输入输出的名称吗?例如输入的名称为“input”,输出为“output” #1164

Closed
zsffuture opened this issue Dec 14, 2023 · 2 comments

Comments

@zsffuture
Copy link

请将下面信息填写完整,便于我们快速解决问题,谢谢!

问题描述
如下图,onnx的输入和输出名字修改,可以做到吗?

更多信息 :

  • 用于部署的推理引擎:
  • 为什么需要转换为ONNX格式:
  • Paddle2ONNX版本:
  • 你的联系方式(Email/Wechat/Phone):

报错截图
image

其他信息

@jiangjiajun
Copy link
Collaborator

不可以,但是你可以通过这个工具来修改onnx中模型输出名 https://github.com/jiangjiajun/PaddleUtils/tree/main/onnx

@Zheng-Bicheng
Copy link
Collaborator

可以使用Paddle2ONNX的ONNX工具脚本来实现

@Zheng-Bicheng Zheng-Bicheng changed the title 导出onnx可以设置输入输出的名称吗?例如输入的名称为“input”,输出为“output” [utils] 导出onnx可以设置输入输出的名称吗?例如输入的名称为“input”,输出为“output” Feb 27, 2024
@Zheng-Bicheng Zheng-Bicheng changed the title [utils] 导出onnx可以设置输入输出的名称吗?例如输入的名称为“input”,输出为“output” 导出onnx可以设置输入输出的名称吗?例如输入的名称为“input”,输出为“output” Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants