Skip to content

Commit f91369f

Browse files
committed
Remove gt match precision to avoid confusion
1 parent f353ac5 commit f91369f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

gluefactory/eval/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,6 @@ def recall(m, gt_m):
175175
results["gt_match_recall@3px"] = recall(
176176
pred["matches0"][None], gt_pred["matches0"].cpu()
177177
)[0].item()
178-
179-
def precision(m, gt_m):
180-
mask = ((m > -1) & (gt_m >= -1)).float()
181-
return ((m == gt_m) * mask).sum(1) / (1e-8 + mask.sum(1))
182-
183-
results["gt_match_precision@3px"] = precision(
184-
pred["matches0"][None], gt_pred["matches0"].cpu()
185-
)[0].item()
186178
return results
187179

188180

0 commit comments

Comments
 (0)