We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f353ac5 commit f91369fCopy full SHA for f91369f
1 file changed
gluefactory/eval/utils.py
@@ -175,14 +175,6 @@ def recall(m, gt_m):
175
results["gt_match_recall@3px"] = recall(
176
pred["matches0"][None], gt_pred["matches0"].cpu()
177
)[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()
186
return results
187
188
0 commit comments