Skip to content

Commit

Permalink
Fix wxbs eval when number inliers==0
Browse files Browse the repository at this point in the history
  • Loading branch information
ducha-aiki authored Jan 15, 2024
1 parent 70b6537 commit c11b476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gluefactory/eval/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def eval_matches_epipolar_via_gt_points(data: dict, pred: dict, conf) -> dict:
"m_kpts1": pts1,
}
est = estimator(data_)
if not est["success"]:
success = est["success"] and (len(est["inliers"]) > 0)
if not success:
results["epi_error"] = [1e6 for i in range(len(data['pts_0to1']))]
results["ransac_inl"] = 0
results["ransac_inl%"] = 0
Expand Down

0 comments on commit c11b476

Please sign in to comment.