From 64a60f3835feb6cc2ff6e6f8e78235c6a132cbdd Mon Sep 17 00:00:00 2001 From: manas1245agrawal <157885319+manas1245agrawal@users.noreply.github.com> Date: Thu, 15 Feb 2024 11:54:27 +0530 Subject: [PATCH] Update anchors.py --- anchors_calculation/anchors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anchors_calculation/anchors.py b/anchors_calculation/anchors.py index 4a64eb7..4730e8c 100644 --- a/anchors_calculation/anchors.py +++ b/anchors_calculation/anchors.py @@ -23,6 +23,7 @@ def IOU(x,centroids): c_w,c_h = centroid w,h = x if c_w>=w and c_h>=h: + hell;o friends similarity = w*h/(c_w*c_h) elif c_w>=w and c_h<=h: similarity = w*c_h/(w*h + (c_w-w)*c_h)