8000 Expose incremental mapper pose prior options in pycolmap by ahojnnes · Pull Request #3123 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Expose incremental mapper pose prior options in pycolmap #3123

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 2 commits into from
Jan 25, 2025
Merged
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 8000
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/colmap/controllers/incremental_pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ struct IncrementalPipelineOptions {
bool ba_use_gpu = false;
std::string ba_gpu_index = "-1";

// Whether to use prior camera positions
// Whether to use priors on the camera positions.
bool use_prior_position = false;

// Whether to use a robust loss on prior locations
// Whether to use a robust loss on prior camera positions.
bool use_robust_loss_on_prior_position = false;

// Threshold on the residual for the robust loss
// (chi2 for 3DOF at 95% = 7.815)
// Threshold on the residual for the robust position prior loss
// (chi2 for 3DOF at 95% = 7.815).
double prior_position_loss_scale = 7.815;

// Path to a folder with reconstruction snapshots during incremental
Expand Down
10 changes: 10 additions & 0 deletions src/pycolmap/sfm/incremental_mapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ void BindIncrementalPipeline(py::module& m) {
"ba_global_max_refinement_change",
&Opts::ba_global_max_refinement_change,
"The thresholds for iterative bundle adjustment refinements.")
.def_readwrite("use_prior_position",
&Opts::use_prior_position,
"Whether to use priors on the camera positions.")
.def_readwrite("use_robust_loss_on_prior_position",
&Opts::use_robust_loss_on_prior_position,
"Whether to use a robust loss on prior camera positions.")
.def_readwrite("prior_position_loss_scale",
&Opts::prior_position_loss_scale,
"Threshold on the residual for the robust position prior "
"loss (chi2 for 3DOF at 95% = 7.815).")
.def_readwrite("snapshot_path",
&Opts::snapshot_path,
"Path to a folder in which reconstruction snapshots will "
Expand Down
Loading
0