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

GLOMAP is NOT parsing some of the input options #91

Closed
alejandrofontan opened this issue Sep 2, 2024 · 1 comment
Closed

GLOMAP is NOT parsing some of the input options #91

alejandrofontan opened this issue Sep 2, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@alejandrofontan
Copy link

Hi,

I've been evaluating the behavior of GLOMAP when modifying some of the input parameters. I was surprised to find that, for some parameters, the performance of GLOMAP doesn't change at all, even when I input highly degraded configurations. For example:

glomap mapper \
    --database_path ${database} \
    --image_path ${rgb_path} \
    --output_path ${exp_folder_colmap} \
    --skip_view_graph_calibration 1 \
    --BundleAdjustment.optimize_intrinsics 0 \
    --BundleAdjustment.thres_loss_function 100000.0

After digging into the code, I suspect that some of these parameters are not being properly parsed. For instance, in glomap/glomap/estimators/bundle_adjustment.h:

BundleAdjusterOptions() : OptimizationBaseOptions() {
    thres_loss_function = 1.;
    loss_function = std::make_shared<ceres::HuberLoss>(thres_loss_function);
    solver_options.max_num_iterations = 200;
}

The thres_loss_function value is hard-coded there. Additionally, I suspect that even if I comment out that line, it won't work since the loss_function is set up before the thres_loss_function is parsed in exe/global_mapper.cc.

Could you help me confirm if my understanding is correct?

Thanks,

@lpanaf lpanaf added bug Something isn't working enhancement New feature or request labels Sep 9, 2024
@lpanaf
Copy link
Collaborator

lpanaf commented Dec 13, 2024

Resolved in #148

@lpanaf lpanaf closed this as completed Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants