Self-Calibrating Neural Radiance Fields

Yoonwoo Jeong, Seokjun Ahn, Christopher B. Choy, Animashree Anandkumar, Minsu Cho, Jaesik ParkICCV 2021

Abstract In this work, we propose a camera self-calibration algorithm for generic cameras with arbitrary non-linear distortions. We jointly learn the geometry of the scene and the accurate camera parameters without any calibration objects. Our camera model consists of a pinhole model, a fourth order radial distortion, and a generic noise model that can learn arbitrary non-linear camera distortions. While traditional self-calibration algorithms mostly rely on geometric constraints, we additionally incorporate photometric consistency. This requires learning the geometry of the scene, and we use Neural Radiance Fields (NeRF). We also propose a new geometric loss function, viz., projected ray distance loss, to incorporate geometric consistency for complex non-linear camera models. We validate our approach on standard real image datasets and demonstrate that our model can learn the camera intrinsics and extrinsics (pose) from scratch without COLMAP initialization. Also, we show that learning accurate camera models in a differentiable manner allows us to improve PSNR over baselines. Our module is an easy-to-use plugin that can be applied to NeRF variants to improve performance. The code and data are currently available at https://github.com/POSTECH-CVLab/SCNeRF.

Introduction

High-quality 3D reconstruction from 2D images fundamentally depends on accurate camera calibration. Traditionally, determining camera extrinsics (pose) and intrinsics (lens properties) requires specialized calibration objects, such as checkerboards. While self-calibration methods—which learn these parameters directly from scene observations—exist, they often suffer from oversimplified camera models, reliance on sparse feature matches, and a failure to account for complex non-linear lens distortions.

Self-Calibrating Neural Radiance Fields (SCNeRF) addresses these challenges by integrating camera calibration directly into the training process of a Neural Radiance Field. By jointly optimizing scene geometry and camera parameters, SCNeRF eliminates the need for traditional calibration tools and can even outperform professional pre-calibration software like COLMAP.

The SCNeRF Framework

Differentiable Camera Model

The core of SCNeRF is a sophisticated differentiable camera model that extends beyond the standard pinhole approximation. It accounts for:

  1. Standard Parameters: Focal length, principal point, and 3D pose.
  2. Radial Distortion: A 4th-order polynomial model to handle common barrel and pincushion effects.
  3. Generic Non-linear Ray Distortion: A per-pixel noise model that utilizes local "raxel" parameters to learn arbitrary, complex aberrations that are difficult to model with closed-form equations.
The three stages of SCNeRF calibration: (a) extrinsic, (b) intrinsic, and (c) non-linear distortion parameters.

Optimization and Loss Functions

To train the system, SCNeRF employs a combination of photometric and geometric losses. The photometric consistency loss ensures that the rendered 3D scene matches the input 2D images. However, for complex non-linear models, standard geometric constraints like epipolar geometry can become unstable.

To solve this, the authors introduce the Projected Ray Distance (PRD) loss. This novel geometric loss operates on the principle that if two pixels in different images correspond to the same physical point in 3D space, their back-projected rays should intersect. The PRD loss measures the distance between these rays in 3D space and uses this error to refine the camera parameters.

Visualization of the Projected Ray Distance (PRD) loss, which enforces geometric consistency by minimizing the distance between rays from different views.

Curriculum Learning

Simultaneously learning geometry and complex camera distortions is a highly non-convex problem. To ensure stability, SCNeRF utilizes a curriculum learning strategy. The optimization begins with basic scene geometry and a simple camera model, progressively "unlocking" more complex parameters like radial distortion and non-linear noise as the training converges.

Experimental Results

The researchers evaluated SCNeRF across several challenging datasets, including LLFF, Tanks and Temples, and a custom Fish-eye dataset designed to test extreme non-linearities.

Learning from Scratch

A key strength of SCNeRF is its ability to converge without "warm starting" from pre-calculated poses. On the "Flower" scene from the LLFF dataset, a standard NeRF fails completely without COLMAP initialization (PSNR ~13.8). In contrast, SCNeRF starts from a zero-rotation origin and achieves a PSNR of 33.2, surpassing the performance of a standard NeRF using professional calibration.

Refining Professional Calibration

Even when initial poses are provided by COLMAP, SCNeRF acts as a powerful refinement tool. In the "Fortress" scene, it improved the final image quality from a PSNR of 35.3 to 36.6. This demonstrates that the joint optimization of geometry and camera parameters can correct subtle errors in traditional calibration pipelines.

Handling Extreme Distortion

In scenarios involving high-distortion fish-eye lenses, where traditional tools often fail, SCNeRF successfully modeled both the complex scene geometry and the lens aberrations simultaneously. This "Fish-eye Mastery" highlights the robustness of the generic non-linear ray distortion model.

Conclusion

SCNeRF represents a significant step forward in making 3D reconstruction more accessible and accurate. By treating camera calibration as a differentiable component of the neural rendering pipeline, it creates a "virtuous cycle" where better geometry informs better calibration and vice versa. As an easy-to-use plugin, SCNeRF can be integrated into various NeRF architectures to improve performance in real-world, "in-the-wild" scenarios.

The code and data are available at https://github.com/POSTECH-CVLab/SCNeRF.

Summary updated

BibTeX
@inproceedings{jeong2021self,
  author = {Yoonwoo Jeong and Seokjun Ahn and Christopher B. Choy and Animashree Anandkumar and Minsu Cho and Jaesik Park},
  title = {{Self-Calibrating Neural Radiance Fields}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=P0zijt89cA9s},
}
Figure