8000 Provide reasonable defaults for some estimator options by sarlinpe · Pull Request #2745 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Provide reasonable defaults for some estimator options #2745

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

Merged
merged 3 commits into from
Sep 4, 2024

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
16 checks passed
@ahojnnes ahojnnes deleted the sarlinpe/fix-default-ransac-opts branch September 4, 2024 07:20
@@ -86,10 +95,10 @@ struct AbsolutePoseRefinementOptions {
double loss_function_scale = 1.0;

// 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.

3 participants
0