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

yolov8 obb cuda后处理是否错误 #1608

Open
e1e1t7t7 opened this issue Dec 6, 2024 · 4 comments
Open

yolov8 obb cuda后处理是否错误 #1608

e1e1t7t7 opened this issue Dec 6, 2024 · 4 comments
Labels
wontfix This will not be worked on

Comments

@e1e1t7t7
Copy link

e1e1t7t7 commented Dec 6, 2024

在postprocess.cu中的decode_kernel_obb(float* predict, int num_bboxes, float confidence_threshold, float* parray, int max_objects) 中如下代码:

float* pout_item = parray + 1 + index * bbox_element;
*pout_item++ = cx;                                        //0
*pout_item++ = cy;                                        //1
*pout_item++ = width;                                     //2
*pout_item++ = height;                                    //3
*pout_item++ = confidence;                                //4
*pout_item++ = label;                                     //5
*pout_item++ = 1;  // 1 = keep, 0 = ignore                6
*pout_item++ = angle;                                    //7

bbox_element在types.h中,其值为7,但obb的输出element应该是8吧(left, top, right, bottom, confidence, class, keepflag, angle),上述代码会导致decode的结果中每个结果的angle被覆盖

@wang-xinyu
Copy link
Owner

@lindsayshuo 看下呢

@LorenzoSun-V
Copy link

我也遇到了类似的问题,yolov8 obb cuda后处理结果是不对的

@LorenzoSun-V
Copy link

但是这个keepflag实际不是模型输出的结果,而是在做NMS时给出的结果,符合阈值且满足NMS筛选过后的框,keepflag=1.

Copy link

stale bot commented Feb 23, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants