Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sarlinpe
Copy link
Member

@sarlinpe sarlinpe commented Sep 3, 2024

#2721 inadvertently broke the default options for pycolmap.estimate_triangulation, which I then realized were completely wrong. To fix this, I think that EstimateTriangulationOptions and AbsolutePose{Estimation,Refinement}Options should provide sensible defaults instead of, as we have been doing it so far, monkey-patching some values in Python. This PR doesn't change the default behavior of COLMAP and only slightly affects PyCOLMAP's estimate_triangulation/absolute_pose_estimation/rig_absolute_pose_estimation to be consistent with the corresponding COLMAP options.

@sarlinpe sarlinpe marked this pull request as ready for review September 3, 2024 20:49
@B1ueber2y
Copy link
Contributor

Crucial fix. Thanks!

@ahojnnes ahojnnes merged commit 6b59bb7 into main Sep 4, 2024
@ahojnnes ahojnnes deleted the sarlinpe/fix-default-ransac-opts branch September 4, 2024 07:20

// Whether to refine the focal length parameter group.
bool refine_focal_length = true;
bool refine_focal_length = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

The logic here also needs to be updated since the default has been changed? https://github.com/colmap/colmap/blob/main/src/colmap/sfm/incremental_mapper.cc#L475-L482

Not sure if there are other cases in the sfm. Might need double check


// Whether to refine the extra parameter group.
bool refine_extra_params = true;
bool refine_extra_params = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same to the focal_length option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants