DiffusionDet
DiffusionDet copied to clipboard
[A Bug?] The diffused boxes as input may have negative coordinates.
https://github.com/ShoufaChen/DiffusionDet/blob/1efb36d4b0b721f2d509bc72656235a94d73ab02/diffusiondet/detector.py#L400-L403
Though you clamped the coordinates (x) at line400, they may become negative number when converted from (cx, cy, w, h) to (x, y, x, y) mode. Here is an example:
It happens when cx or cy is close to zero (or clamped to zero), if conducting cx - w/2 or cy - h/2, it becomes negative number.
Is it acceptable to pass the negative coordinates to the RCNN head? Will it cause any unexpected behavior extracting roi feature?
Hi,
Thanks for your interest.
Yes, the RCNN head can accept negative coordinates.
Thanks for your reply.