Skip to content

[目标检测][结果Error]第二次开始运行不同的图片,永远是第一张图片的结果 #50855

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

Open
engineer1109 opened this issue Feb 24, 2023 · 11 comments
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/following-up 跟进中 type/bug-report 报bug

Comments

@engineer1109
Copy link
Contributor

engineer1109 commented Feb 24, 2023

bug描述 Describe the Bug

最新的Commit发现只要是非CPU运行 Yolo类型的网络。
目前能确认CUDA和Custom Device一定这样。切CPU模式就正常。
Yolo和SSD都会这样。

分享ppyolo模型 链接: https://pan.baidu.com/s/1rcYJYXRt2IfUIRu5Nt7_9w?pwd=vguu 提取码: vguu

Screenshot from 2023-02-24 10-14-49
Screenshot from 2023-02-24 10-15-00

图中第二只猫仍然是第一张图的检测结果。

第一次运行结果正确。
但是从第二次运行开始,拿到的结果Tensor永远是第一张图的。
这在我两周前提交PR不会这样的情况。

怀疑是nms3算子 切到CPU上,再切回device出现问题

Code is on develop 605242a
System Ubuntu 20.04
GCC 9.4.0
CUDA 11.7
CUDNN 8.7.0

其他补充信息 Additional Supplementary Information

No response

@paddle-bot
Copy link

paddle-bot bot commented Feb 24, 2023

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

@paddle-bot paddle-bot bot added the PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc label Feb 24, 2023
@engineer1109 engineer1109 changed the title [目标检测]第二次开始运行不同的图片,永远是第一张图片的结果 [目标检测][结果Error]第二次开始运行不同的图片,永远是第一张图片的结果 Feb 24, 2023
@engineer1109
Copy link
Contributor Author

这个能确定两周内才有

@SunNy820828449
Copy link
Contributor

SunNy820828449 commented Feb 24, 2023

贴一下错误的代码 你用的repo也顺便贴一下

@engineer1109
Copy link
Contributor Author

贴一下错误的代码 你用的repo也顺便贴一下

605242a

这个commit开始有问题

@engineer1109
Copy link
Contributor Author

测试代码 链接: https://pan.baidu.com/s/1gvB4FTHJaJ4KT_DNWeGJmQ 密码: 0bk1

里面对两幅不同的图进行推理,却得到了一样的结果,我怀疑所GraphIR有问题,multiclass_nms3必然是CPU运行的,与GPU之间的transform存在BUG

@engineer1109
Copy link
Contributor Author

@SunNy820828449

@SunNy820828449
Copy link
Contributor

我已经给提commit的同学反馈这个问题

@liudongxue01
Copy link
Contributor

liudongxue01 commented Feb 27, 2023

贴一下错误的代码 你用的repo也顺便贴一下

605242a

这个commit开始有问题

请问之前正常的版本号还记得吗?@engineer1109

@csy0225
Copy link
Contributor

csy0225 commented Feb 27, 2023

你好,有问题的修改已经 revert了,请重新拉取一下 develop 代码重新试一下,合入 PR #50895

@engineer1109
Copy link
Contributor Author

@csy0225 我看了custom_device 已经正常了,我明天再看CUDA的。

@paddle-bot paddle-bot bot added status/following-up 跟进中 and removed status/new-issue 新建 labels Mar 2, 2023
@engineer1109
Copy link
Contributor Author

solved

@paddle-bot paddle-bot bot added status/close 已关闭 status/following-up 跟进中 and removed status/following-up 跟进中 labels Mar 2, 2023
@paddle-bot paddle-bot bot reopened this Mar 2, 2023
@paddle-bot paddle-bot bot removed the status/close 已关闭 label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PFCC Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc status/following-up 跟进中 type/bug-report 报bug
Projects
None yet
Development

No branches or pull requests

4 participants