You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the reference in Wikipedia is also to the key paper of Taha & Hanbury, which indicates that we have found one of these rare mistakes in Wikipedia :o
def calc_IoU_Sets(truth, pred, c=1, **kwargs):
# Obtain sets with associated class
gt = np.equal(truth, c)
pd = np.equal(pred, c)
# Calculate IoU
if (pd.sum() + gt.sum() - np.logical_and(pd, gt).sum()) != 0:
iou = np.logical_and(pd, gt).sum() /
(pd.sum() + gt.sum() - np.logical_and(pd, gt).sum())
else : iou = 0.0
# Return computed IoU
return iou
In this function, you should reduce the FN, but you reduce the FP.
The text was updated successfully, but these errors were encountered: