pypose/bae
[T-RO 2026] Bundle Adjustment in the Eager Mode
What it solves
Bundle Adjustment (BA) and Pose Graph Optimization (PGO) are core problems in robotics and 3D reconstruction, but they are computationally heavy due to the large, sparse systems of equations involved. bae provides efficient, exact second-order optimization algorithms that run fast on GPUs, making these tasks practical for real-world applications.
How it works
bae is built on PyTorch and implements exact second-order optimization techniques, including the Levenberg-Marquardt (LM) optimizer and a Schur complement variant for reduced memory use. It features custom CUDA kernels for sparse block matrix operations, integrates seamlessly with PyTorch's automatic differentiation, and supports both CPU and GPU execution. The library is designed to handle the sparse structure typical of BA and PGO problems, and can optionally use NVIDIA's CUDSS sparse solver for further speed.
Who it’s for
Researchers, engineers, and developers working on robotics, computer vision, or 3D reconstruction who need to solve large-scale non-linear least squares problems. It is used as a backend in systems like InstantSfM and as an optional refinement step in VGGT, so anyone building such systems can benefit.
Highlights
- Provides exact Levenberg-Marquardt optimization for non-linear least squares.
- Includes a Schur complement optimizer to cut memory consumption.
- Offers custom CUDA kernels for sparse matrix operations and high-performance linear algebra.
- Integrates with PyTorch's autograd for easy model construction and differentiation.
- Demonstrated on Bundle Adjustment, Pose Graph Optimization, and RGB-D pose refinement tasks.
Related
- Project
pypose/pyposePyPose is a PyTorch‑based library that provides differentiable Lie‑group tensors, classic filters (EKF, UKF, PF), and second‑order optimisers (Gauss‑Newton, Levenberg‑Marquardt) for robot learning, enabling seamless integration of deep perception models with physics‑based optimisation and sparse bundle‑adjustment on GPU.
- Project
NVIDIA/torch-harmonicstorch-harmonics is a PyTorch library for differentiable signal processing on the sphere, providing spherical harmonic transforms, convolutions, and attention mechanisms for machine learning on spherical data.
- Project
CVCUDA/CV-CUDACV‑CUDA is NVIDIA’s open‑source, GPU‑only computer‑vision library. It offers a Python/C++ API for fast image/video operators (resize, color conversion, filters, etc.) that run directly on the GPU, enabling high‑throughput, low‑latency preprocessing for AI pipelines on cloud, desktop, and edge (Jetson) platforms. Install via `pip install cvcuda-cu12` or `cvcuda-cu13`; supports Linux x86_64 and aarch64 with CUDA 12/13; Apache‑2.0 licensed.
- Project
thu-ml/SLASLA is a PyTorch library that implements Sparse‑Linear Attention, a hybrid sparse‑plus‑linear attention mechanism designed to accelerate diffusion‑model transformers. It offers a simple API, an optional high‑performance SageSLA variant, and installation via `pip install -e .`. The repo includes two branches (SLA‑1 and main) and citation details for the associated papers.
- Project
huawei-bayerlab/marigold-v2Marigold V2 is an open‑source research codebase that converts a frozen diffusion transformer (Qwen‑Image‑Edit‑2509) into fast, single‑step dense predictors for monocular depth, see‑through depth, surface normals, and albedo. It provides pretrained LoRA checkpoints, a lightweight fine‑tuning recipe (≈ 1 week on a single 32 GB GPU), CLI inference, benchmark evaluation scripts, and a modular YAML‑driven training framework that can be extended to new dense‑vision tasks.