Git Product home page Git Product logo

micro-bundle-adjustment's Introduction

Micro Bundle Adjustment ๐ŸŒฑ

Getting into bundle adjustment solvers can be hard. To make it easier, I have made a very basic pure Pytorch implementation, useful for teaching/learning. Despite being less than 100 lines of code, it can handle 10^6 3D points with ease, due to utilizing sparsity and GPU.

Features

  • Basic Implementation of two-view bundle adjustment for any type of camera

TODO List

  • Example with residual function
  • Generalize implementation to K-views
  • [1/2] Clean up and document code
  • []

Usage

See demos.

Basically you define a (non-batched) function for your residuals, which takes in your observations, camera params, and 3D points and outputs the residual. Sending this together with an initial guess is all you need to do! Gradients are computed automatically, and you can use arbitrary camera models.

micro-bundle-adjustment's People

Contributors

parskatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

micro-bundle-adjustment's Issues

Potential integration into pycolmap

Hey,

Thanks for the great work! Just want to say hi and let you know that we have just made it possible for running COLMAP BA with pycolmap and pyceres (colmap/colmap#2509), which can potentially open the door for building the optimization with pytorch as well. Might be interesting to substitute https://github.com/colmap/colmap/blob/main/pycolmap/custom_bundle_adjustment.py#L193-L205 and the PyBundleAdjuster (https://github.com/colmap/colmap/blob/main/pycolmap/custom_bundle_adjustment.py#L13) with pytorch to more easily integrate learning-based losses if we could make the optimizer achieve similar performance as in ceres : )

Best,
Shaohui

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.