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

Bump up shonan optimality threshold param #805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 4 additions & 0 deletions gtsfm/averaging/rotation/shonan.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

_DEFAULT_TWO_VIEW_ROTATION_SIGMA = 1.0

# The threshold for the smallest eigenvalue check in GTSAM. Defaults to -1e-4 in GTSAM.
_OPTIMALITY_THRESHOLD = -1e-5


class ShonanRotationAveraging(RotationAveragingBase):
"""Performs Shonan rotation averaging."""
Expand Down Expand Up @@ -60,6 +63,7 @@ def __get_shonan_params(self) -> ShonanAveragingParameters3:
shonan_params = ShonanAveragingParameters3(lm_params)
shonan_params.setUseHuber(False)
shonan_params.setCertifyOptimality(True)
shonan_params.setOptimalityThreshold(_OPTIMALITY_THRESHOLD)
return shonan_params

def __measurements_from_2view_relative_rotations(
Expand Down
Loading