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

Paddlepaddle2.4.2以上版本paddledetection导出的模型无法在C++使用 #9265

Open
3 tasks done
custom09 opened this issue Jan 5, 2025 · 4 comments
Open
3 tasks done
Assignees

Comments

@custom09
Copy link

custom09 commented Jan 5, 2025

问题确认 Search before asking

  • 我已经查询历史issue,没有发现相似的bug。I have searched the issues and found no similar bug report.

Bug组件 Bug Component

No response

Bug描述 Describe the Bug

Paddlepaddle2.4.2以上版本paddledetection导出的模型无法在C++使用

复现环境 Environment

windows10, paddlepaddle2.4.2以上(不含2.4.2),paddledetection任意版本 export_model

Bug描述确认 Bug description confirmation

  • 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.

是否愿意提交PR? Are you willing to submit a PR?

  • 我愿意提交PR!I'd like to help by submitting a PR!
@liu-jiaxuan
Copy link
Collaborator

抱歉,没有太理解问题,麻烦描述的详细一点,比如导出的哪个模型,在C++中怎样使用

@custom09
Copy link
Author

custom09 commented Jan 7, 2025

PPYOLOE+S,具体的在邮件回复了,包括YAML文件和样图。分别2.4.2和2.4.2以上(不含)导出模型,2.4.2可以在CPP编译出来的main.exe推理,而2.4.2以上不行。由于附件好像有限制,模型文件不能上传。

@liu-jiaxuan
Copy link
Collaborator

没有收到邮件呢,是给哪个邮箱发送的

@custom09
Copy link
Author

custom09 commented Jan 8, 2025

没有收到邮件呢,是给哪个邮箱发送的

248260555@qq.com
邮件内容:
训练好的PPYOLOE+S改尺度的模型(0.16×0.25),邮件大小有限制无法发出,YAML文件见附件。如果安装的是paddlepaddle2.4.2对应显卡和CUDA版本的内核,用paddledetection2.6/2.7的export_model输出的模型(其它的模型,如基于OBJECT365的预训练模型)在其deploy/cpp用cmake创建的C++控制台程序的main.exe文件推理是可以有结果的,而使用2.4.2以上(不含2.4.2)导出的模型无法在同样的C++控制台程序中推理。推理过一些时间直接返回退出了。大概的情况是这样。其它模型也是一样的情况,包括标准的PPYOLOE+S/M的一些模型。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants