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

ONNXRuntime部署示例颜色错误 #8817

Closed
3 tasks done
HeShiwen opened this issue Feb 18, 2024 · 3 comments
Closed
3 tasks done

ONNXRuntime部署示例颜色错误 #8817

HeShiwen opened this issue Feb 18, 2024 · 3 comments
Assignees

Comments

@HeShiwen
Copy link

问题确认 Search before asking

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

Bug组件 Bug Component

Deploy

Bug描述 Describe the Bug

PaddleDetection\deploy\third_engine\demo_onnxruntime\infer_demo.py进行ONNX推理,得到的图片结果颜色错误。原因是在保存图片之前没有将RGB转为OpenCV默认的颜色格式,应该在174与175行之间添加以下代码:srcimg = cv2.cvtColor(srcimg, cv2.COLOR_RGB2BGR)

复现环境 Environment

PaddleDetection2.7

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!
@lyuwenyu
Copy link
Collaborator

感谢反馈,方便提个PR嘛

@HeShiwen
Copy link
Author

HeShiwen commented Feb 25, 2024 via email

@LokeZhou
Copy link
Collaborator

LokeZhou commented Mar 1, 2024

感谢贡献,ci跑过后会合入,后续相关可以在pr界面反馈,当前issue先关闭

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