Skip to content

潜在的一个bbox问题 #575

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
zijialee opened this issue Mar 28, 2025 · 0 comments
Open

潜在的一个bbox问题 #575

zijialee opened this issue Mar 28, 2025 · 0 comments
Assignees

Comments

@zijialee
Copy link

Image

在rtdetr_pytorch/src/zoo/rtdetr/rtdetr_decoder.py中,用sigmoid使得inter_ref_bbox都在[0,1]范围内,(cx,cy,w,h)各自在[0,1]范围内,但是无法保证利用box_cxcywh_to_xyxy转化表示形式的时候,(x_min,y_min)一定大于0,(x_max,y_max)一定小于1吧?

例如,如果使用sigmoid后得到的inter_ref_bbox是(0.8,0.4,0.6,0.7),box_cxcywh_to_xyxy转化后为(0.5, 0.05, 1.1, 0.75),虽然不会直接报错,但是不会潜在的bug吗?应该怎么避免这个问题?这会不会也是导致有时候会出现以下问题:
assert (boxes1[:, 2:] >= boxes1[:, :2]).all()
assert (boxes2[:, 2:] >= boxes2[:, :2]).all()

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

2 participants