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)