TL;DR
CalibAnyView is a unified framework for camera calibration that works across the spectrum from single images to sparse multi-view sequences "in the wild." By integrating cross-view attention within a transformer and employing a robust geometric solver, it accurately recovers camera intrinsics and absolute gravity direction for diverse lens models, including highly distorted fisheye optics.
What Problem Does This Paper Address?
Camera calibration—determining a camera's internal parameters (intrinsics) and its orientation relative to the world (gravity)—is the bedrock of 3D computer vision. Traditional methods are often brittle: they require specialized targets like checkerboards, dense view coverage for Structure-from-Motion (SfM), or specific scene structures like straight lines.
Casual imagery from smartphones or drones rarely meets these criteria. While recent deep-learning methods can calibrate from a single image, they struggle with ambiguity and fail to leverage the geometric consistency available in short video clips or burst captures. Conversely, multi-view methods often assume a simple pinhole camera model, failing on the distorted wide-angle lenses common in modern mobile devices. CalibAnyView bridges this gap by creating a unified, robust system for "any-view" calibration in unconstrained environments.
Methods
The authors propose a two-stage framework that combines learned visual priors with rigorous geometric optimization:
- The CalibAnyView Network:
- Feature Extraction: Uses a frozen DINOv2 backbone to extract rich visual features.
- Cross-View Transformer: A series of alternating intra-frame and cross-frame attention blocks allows the network to "exchange" geometric evidence between different views of the same camera. This helps resolve ambiguities that a single view might leave open.
- Perspective Fields: The network predicts two camera-model-agnostic maps: an Up Field (U) (per-pixel unit vectors pointing toward the zenith) and a Latitude Field (Φ) (the angle between the horizon and the viewing ray).
- Multi-view Geometric Optimization:
- A differentiable Levenberg-Marquardt (LM) solver fuses the predicted fields into shared camera intrinsics and per-view gravity directions.
- Handling Distortion: The framework supports the Enhanced Unified Camera Model (EUCM), which can represent everything from pinhole to extreme fisheye lenses.
- Two-Stage Initialization: To prevent the solver from getting stuck in local minima (a common problem with wide-angle lenses), the authors developed a novel closed-form initialization specifically for the EUCM model based on the properties of the Latitude Field.
Datasets
To train a model capable of handling real-world complexity, the authors constructed a massive new dataset:
- Multi-view Video Dataset: They re-projected high-quality 360° panoramic content (from OpenPano and 360-1M) into virtual cameras with diverse lens distortions and realistic motion trajectories.
- VLM Filtering: They used a Vision-Language Model (Qwen3-VL) to automatically filter out low-quality clips containing watermarks, stitching artifacts, or occlusions.
- Evaluation Benchmarks: The model was tested on four challenging, unseen benchmarks: Stanford2D3D, Aria-ADT (RGB and Grayscale), and ScanNet++.
Key Insights and Ideas
- Consistency is Key: The most significant "aha moment" is that modeling cross-view interactions inside the neural network (via attention) provides a much larger accuracy boost than simply sharing intrinsics in a post-processing step.
- Model-Agnostic Learning: By predicting "perspective fields" rather than raw camera parameters, the network learns general geometric principles that apply to any camera, whether it's a standard pinhole or a distorted fisheye.
- Sparse is Enough: Unlike SfM, which often fails with only two or three views, CalibAnyView shows steady improvement as views are added, even in the very sparse regime (N=2 to 10).
Key Results
CalibAnyView sets a new state-of-the-art in both single-view and multi-view settings:
- Multi-view Superiority: On the ScanNet++ benchmark, CalibAnyView achieved a median vertical Field of View (vFoV) error of just 1.53° with 8 views, significantly outperforming traditional tools like COLMAP (0.53° but with a much higher failure rate) and recent learning-based methods like GeoCalib (18.90° for the pinhole variant).
- Robustness to Distortion: As shown in qualitative results, the model remains faithful to the ground truth even as lens distortion increases, whereas previous methods like GeoCalib tend to "drift" and flatten the geometry.
- Scaling with Views: The error drops sharply as the number of views increases, proving the effectiveness of the cross-view attention mechanism.
Limitations and Future Work
- Fixed Principal Point: The current model assumes the optical center is at the exact middle of the image, which isn't always true for cropped or shifted images.
- No Zoom Support: It assumes intrinsics are shared across the sequence, meaning it cannot currently handle a camera zooming in or out during a clip.
- Computational Scaling: The quadratic cost of the global attention mechanism makes it difficult to scale the network to very long video sequences (e.g., hundreds of frames).
- Future Directions: The authors suggest exploring ray-based parameterizations to relax the principal point assumption and investigating token pruning to improve efficiency for longer sequences.
Summary updated