Unverified Commit 711076a2 authored by Ben Graham's avatar Ben Graham Committed by GitHub
Browse files

Fix iou

parent d80ef3e2
......@@ -27,7 +27,7 @@ def get_iou(label_id, confusion):
# false positives
fp = np.longlong(confusion[label_id, :].sum()) - tp
# false negatives
fn = np.longlong(confusion[:, label_id].sum())
fn = np.longlong(confusion[:, label_id].sum()) - tp
denom = (tp + fp + fn)
if denom == 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment