Abstract
Reconstructing precise camera poses and floor plan layouts from wide-baseline RGB panoramas is a difficult and unsolved problem. We introduce BADGR, a novel diffusion model that jointly performs reconstruction and bundle adjustment (BA) to refine poses and layouts from a coarse state, using 1D floor boundary predictions from dozens of sparsely captured images. Unlike guided diffusion models, BADGR is conditioned on dense per-column outputs from a single-step Levenberg Marquardt (LM) optimizer and is trained to predict camera and wall positions, while minimizing reprojection errors for view consistency. The objective of layout generation from denoising diffusion process complements BA optimization by providing additional learned layout-structural constraints on top of the co-visible features across images. These constraints help BADGR make plausible guesses about spatial relationships, which constrain the pose graph, such as wall adjacency and collinearity, while also learning to mitigate errors from dense boundary observations using global context. BADGR trains exclusively on 2D floor plans, simplifying data acquisition, enabling robust augmentation, and supporting a variety of input densities. Our experiments validate our method, which significantly outperforms the state-of-the-art pose and floor plan layout reconstruction with different input densities.
Introduction
Creating accurate 2D floor plans from 360° panoramas is essential for virtual real estate and autonomous navigation. However, "wide-baseline" captures—where cameras are placed sparsely, often only one per room—present significant challenges. Traditional Structure from Motion (SfM) techniques rely on feature matching across overlapping images, which fails in sparse indoor environments with featureless walls. Conversely, while deep learning models can predict layouts, they often ignore strict geometric constraints, leading to view-inconsistency.
BADGR (Bundle Adjustment Diffusion) addresses these issues by treating floor plan reconstruction as a denoising task guided by classical geometry. By conditioning a generative diffusion model on geometric gradients, the system achieves state-of-the-art accuracy even in extreme wide-baseline scenarios.
Methodology
BADGR iteratively refines a coarse initial scene state into a precise 3D reconstruction using a diffusion process anchored by photographic evidence.
The architecture consists of three primary components:
- Planar BA Layer: A differentiable optimization layer using a single-step Levenberg-Marquardt (LM) optimizer. It calculates "gradients"—instructions on how to adjust walls and cameras to minimize the error between predicted floor boundaries and the current 3D model.
- Column Geometry Encoder: This module compresses dense, per-column adjustments from the BA layer into a 1D embedding, allowing the model to perceive geometric tension in the scene.
- Transformer Denoiser: A conditional Denoising Diffusion Probabilistic Model (DDPM) that takes the noisy initial layout and camera poses and iteratively refines them. It is conditioned on the BA embeddings, allowing it to satisfy geometric constraints while using learned priors to handle occlusions or unlikely room shapes.
Key Insights
- Gradients as Conditioning: Unlike standard guided diffusion, BADGR is trained to interpret gradients, making it faster and more robust to manifold drift.
- Atlanta World Constraint: The model assumes walls are vertical and follow discrete horizontal orientations (e.g., 90° increments), which stabilizes the optimization by reducing degrees of freedom.
- Joint Optimization: By refining camera poses and wall positions simultaneously, the model ensures global view consistency, where the projected 2D plan aligns perfectly with the boundaries seen in every panorama.
Results and Evaluation
BADGR was evaluated using the Zillow Indoor Dataset (ZInD) and a new large-scale dataset, FloorPlan-60K, containing over 68,000 floor plans.
- Extreme Sparsity: In scenarios with only 0.6 images per room, BADGR reduced pose translation error by nearly 40% compared to the strongest baselines (from ~20cm down to ~12cm).
- Layout Accuracy: The "Visible Wall" error improved by 30-50% across various capture densities.
- Qualitative Performance: Visual results demonstrate that BADGR successfully eliminates artifacts like overlapping rooms and floating walls common in traditional pipelines.
Conclusion and Future Work
BADGR demonstrates that fusing classical geometric optimization with generative diffusion models can solve complex wide-baseline reconstruction tasks. While the model currently requires a coarse initial scene and relies on a pre-defined connectivity graph, future work will focus on automating topology discovery and handling more organic architectural designs.
Summary updated