Skip to content

Commit 9d7177f

Browse files
nlgrangerdatumbox
andauthored
remove debugging asserts (#5332)
fixes issue #5322 Co-authored-by: Nicolas Granger <[email protected]> Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent 8d46ef7 commit 9d7177f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

torchvision/ops/giou_loss.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ def generalized_box_iou_loss(
3737
x1, y1, x2, y2 = boxes1.unbind(dim=-1)
3838
x1g, y1g, x2g, y2g = boxes2.unbind(dim=-1)
3939

40-
assert (x2 >= x1).all(), "bad box: x1 larger than x2"
41-
assert (y2 >= y1).all(), "bad box: y1 larger than y2"
42-
4340
# Intersection keypoints
4441
xkis1 = torch.max(x1, x1g)
4542
ykis1 = torch.max(y1, y1g)

0 commit comments

Comments
 (0)