Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce RANSAC threshold #737

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gtsfm/configs/deep_front_end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ SceneOptimizer:
two_view_estimator_obj:
_target_: gtsfm.two_view_estimator.TwoViewEstimator
bundle_adjust_2view: True
eval_threshold_px: 4 # in px
eval_threshold_px: 0.5 # only for evaluation and metrics purposes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we changing the evaluation threshold too?

ba_reproj_error_thresholds: [0.5]
bundle_adjust_2view_maxiters: 100

verifier:
_target_: gtsfm.frontend.verifier.ransac.Ransac
use_intrinsics_in_verification: True
estimation_threshold_px: 4 # for H/E/F estimators
estimation_threshold_px: 0.5 # for H/E/F estimators

triangulation_options:
_target_: gtsfm.data_association.point3d_initializer.TriangulationOptions
Expand Down
4 changes: 2 additions & 2 deletions gtsfm/configs/deep_front_end_astrovision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ SceneOptimizer:
two_view_estimator_obj:
_target_: gtsfm.two_view_estimator.TwoViewEstimator
bundle_adjust_2view: True
eval_threshold_px: 4 # in px
eval_threshold_px: 0.5 # only for evaluation and metrics purposes
ba_reproj_error_thresholds: [0.5]
bundle_adjust_2view_maxiters: 100

verifier:
_target_: gtsfm.frontend.verifier.ransac.Ransac
use_intrinsics_in_verification: True
estimation_threshold_px: 4 # for H/E/F estimators
estimation_threshold_px: 0.5 # for H/E/F estimators

triangulation_options:
_target_: gtsfm.data_association.point3d_initializer.TriangulationOptions
Expand Down
4 changes: 2 additions & 2 deletions gtsfm/configs/sift_front_end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ SceneOptimizer:
two_view_estimator_obj:
_target_: gtsfm.two_view_estimator.TwoViewEstimator
bundle_adjust_2view: True
eval_threshold_px: 4 # in px
eval_threshold_px: 0.5 # only for evaluation and metrics purposes
ba_reproj_error_thresholds: [0.5]
bundle_adjust_2view_maxiters: 100

verifier:
_target_: gtsfm.frontend.verifier.ransac.Ransac
use_intrinsics_in_verification: True
estimation_threshold_px: 4 # for H/E/F estimators
estimation_threshold_px: 0.5 # for H/E/F estimators

triangulation_options:
_target_: gtsfm.data_association.point3d_initializer.TriangulationOptions
Expand Down
4 changes: 2 additions & 2 deletions gtsfm/configs/sift_front_end_astrovision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ SceneOptimizer:
two_view_estimator_obj:
_target_: gtsfm.two_view_estimator.TwoViewEstimator
bundle_adjust_2view: True
eval_threshold_px: 4 # in px
eval_threshold_px: 0.5 # only for evaluation and metrics purposes
ba_reproj_error_thresholds: [0.5]
bundle_adjust_2view_maxiters: 100

verifier:
_target_: gtsfm.frontend.verifier.ransac.Ransac
use_intrinsics_in_verification: True
estimation_threshold_px: 4 # for H/E/F estimators
estimation_threshold_px: 0.5 # for H/E/F estimators

triangulation_options:
_target_: gtsfm.data_association.point3d_initializer.TriangulationOptions
Expand Down
2 changes: 1 addition & 1 deletion gtsfm/frontend/verifier/ransac.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def estimate_E(
uv_norm_i2: np.ndarray,
match_indices: np.ndarray,
fx: float,
robust_estimation_type: RobustEstimationType = RobustEstimationType.USAC_ACCURATE,
robust_estimation_type: RobustEstimationType = RobustEstimationType.USAC_MAGSAC,
) -> Tuple[np.ndarray, np.ndarray]:
"""Estimate the Essential matrix from correspondences.

Expand Down
Loading