Unverified Commit 9d7177fe authored by Nicolas Granger's avatar Nicolas Granger Committed by GitHub
Browse files

remove debugging asserts (#5332)



fixes issue #5322
Co-authored-by: default avatarNicolas Granger <nicolas.granger@cea.fr>
Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent 8d46ef7f
......@@ -37,9 +37,6 @@ def generalized_box_iou_loss(
x1, y1, x2, y2 = boxes1.unbind(dim=-1)
x1g, y1g, x2g, y2g = boxes2.unbind(dim=-1)
assert (x2 >= x1).all(), "bad box: x1 larger than x2"
assert (y2 >= y1).all(), "bad box: y1 larger than y2"
# Intersection keypoints
xkis1 = torch.max(x1, x1g)
ykis1 = torch.max(y1, y1g)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment