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

modify LMOptimizer's parameters #30

Open
CharalamposTzamos opened this issue Apr 9, 2025 · 0 comments
Open

modify LMOptimizer's parameters #30

CharalamposTzamos opened this issue Apr 9, 2025 · 0 comments

Comments

@CharalamposTzamos
Copy link

Hi,
I wanted to modify the parameters of LMOptimizer, in particular the "num_steps" of LM optimization. I noticed that when calling the constructor of GeoCalib class with the weights as parameter, the constructor from extract.py is called. there in the LMOptimizer is initialized with no custom parameters. Thus is it not possible to modify the parameters of LM through this constructor. It was easy to hack it, by adding a parameter num_steps on either the constructor or the calibrate function, and modify it as: self.model.optimizer.num_steps = num_steps.

Thanks!

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

No branches or pull requests

1 participant