hujiecpp / ISTR

ISTR: End-to-End Instance Segmentation with Transformers (https://arxiv.org/abs/2105.00637)
203 stars 28 forks source link

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

Open deeptig84 opened 2 years ago

deeptig84 commented 2 years ago

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 commented 1 year ago

how do you solve it?

deeptig84 commented 1 year ago

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

keithkctse commented 1 year ago

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 commented 1 year ago

Hi @keithkctse how much did you reduce LR?