My test function is returning wrong values, any quick pointers . My steps to be correct.
-Sri
iou for intersecting boxes = 2.0
AssertionError Traceback (most recent call last)
in
5
6 print("iou for intersecting boxes = " + str(iou(box1, box2)))
----> 7 assert iou(box1, box2) < 1, “The intersection area must be always smaller or equal than the union area.”
8 assert np.isclose(iou(box1, box2), 0.14285714), “Wrong value. Check your implementation. Problem with intersecting boxes”
9
AssertionError: The intersection area must be always smaller or equal than the union area.