'How to get Bundle Adjustment or any optimization on my monocular visual odometry to work?

I'm trying a monocular visual odometry project

But I can't seem to implement any optimizations on the code..Any idea on which optimizations would be simple to implement or something like Bundle Adjustment, Pose graph or anything that I could implement on the code?

Found this one https://github.com/jahdiel/pySBA/blob/master/PySBA.py , but not sure if I could directly implement it into the code...

If I were to try to implement it into the code, what should I take note on?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source