Skip to content

Commit

Permalink
Update polygon_ops.py
Browse files Browse the repository at this point in the history
`np.float` is deprecated in the latest numpy.
  • Loading branch information
Jyouhou authored Nov 8, 2024
1 parent e805edf commit 7bb1896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluator/polygon_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def intersection_and_area(polygons1, polygons2):
m = polygons2.num_boxes()
polygon_data1 = polygons1.get()
polygon_data2 = polygons2.get()
intersection_area = np.zeros((n, m), dtype=np.float)
intersection_area = np.zeros((n, m), dtype=float)
area1 = area(polygons1)
area2 = area(polygons2)

Expand Down

0 comments on commit 7bb1896

Please sign in to comment.