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

Update infer_demo.py #8833

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

HeShiwen
Copy link

修复ONNXRuntime部署示例颜色错误

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

这个是对应于#8820pr的develop分支修改。

修正目标检测结果图片的颜色错误
Copy link

paddle-bot bot commented Feb 28, 2024

Thanks for your contribution!

@lyuwenyu
Copy link
Collaborator

lyuwenyu commented Mar 6, 2024

ci有点问题 在修了

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

Successfully merging this pull request may close these issues.

None yet

3 participants