We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在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()
The text was updated successfully, but these errors were encountered:
lyuwenyu
No branches or pull requests
在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()
The text was updated successfully, but these errors were encountered: