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

Assertion Error : Degnerate Boxes : box_ops.py in generalized_box_iou(boxes1, boxes2) #11

Open
deeptig84 opened this issue Oct 29, 2021 · 4 comments

Comments

@deeptig84
Copy link

AssertionError: /ISTR/projects/ISTR/istr/util/box_ops.py in generalized_box_iou(boxes1, boxes2)
49 # degenerate boxes gives inf / nan results
50 # so do an early check
---> 51 assert (boxes1[:, 2:] >= boxes1[:, :2]).all()
52 assert (boxes2[:, 2:] >= boxes2[:, :2]).all()
53 iou, union = box_iou(boxes1, boxes2)

I am facing this issue during training and the error occurred after 1800 iterations . Could anyone assist me here.

@guangxuwang
Copy link

how do you solve it?

@deeptig84
Copy link
Author

Hi, I was using this repo for my work but later I switched to Mask2Former.. Let me know if it helps.

@keithkctse
Copy link

keithkctse commented Oct 23, 2022

File "/ISTR/projects/ISTR/istr/util/box_ops.py", line 51, in generalized_box_iou
assert (boxes1[:, 2:] >= boxes1[:, :2]).all()
AssertionError

Facing the same problem

EDIT: After reducing my learning rate, the issue disappeared.

@aleenarayamajhi
Copy link

Hi @keithkctse how much did you reduce LR?

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

4 participants