Skip to content

Commit

Permalink
fix ciou implementation bug (#20784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Surya2k1 authored Jan 20, 2025
1 parent 35f76b8 commit 70125d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ def compute_ciou(boxes1, boxes2, bounding_box_format, image_shape=None):
)

v = ops.squeeze(
ops.power(
(4 / math.pi**2)
* (ops.arctan(width_2 / height_2) - ops.arctan(width_1 / height_1)),
(4 / math.pi**2)
* ops.power(
(ops.arctan(width_2 / height_2) - ops.arctan(width_1 / height_1)),
2,
),
axis=-1,
Expand Down

0 comments on commit 70125d4

Please sign in to comment.