CAD-NeRF: Learning NeRFs from Uncalibrated Few-view Images by CAD Model Retrieval

Xin Wen, Xuening Zhu, Renjiao Yi, Zhifeng Wang, Chenyang Zhu, Kai Xu · DOI

Introduction

Neural Radiance Fields (NeRF) have revolutionized 3D scene reconstruction but typically demand extensive data: hundreds of high-resolution images with precise camera calibration. In real-world "in-the-wild" scenarios, users often only have a handful of images (sparse views) and no information about camera poses (uncalibrated). This creates an ill-posed problem where many 3D configurations could explain the same 2D pixels, leading to artifacts like "floaters" or complete geometric failure.

CAD-NeRF addresses this challenge by leveraging shape priors. By retrieving a similar CAD model from a small library to act as a geometric anchor, the system provides a robust starting point for optimization, enabling high-quality reconstruction from as few as 3 to 10 uncalibrated images.

Methodology

The CAD-NeRF pipeline consists of three distinct phases that transition from coarse shape retrieval to fine-grained neural optimization.

Overview of the CAD-NeRF pipeline: from uncalibrated input images to CAD retrieval and final novel view synthesis compared against baselines.

1. CAD Model and Pose Retrieval

The system utilizes a "mini library" of 24 common CAD models from ShapeNet along with basic geometric primitives like boxes. It performs silhouette matching using Intersection over Union (IoU) to identify the best-fitting model. A significant challenge in uncalibrated settings is symmetry; two different camera angles can produce nearly identical silhouettes. To address this, the authors introduce a multi-view pose retrieval algorithm with backtracking. This algorithm enforces global consistency across the image sequence, ensuring that estimated camera poses follow the correct temporal order and avoiding common 180-degree "flips."

2. Density Field Pre-training

The retrieved CAD model serves as a geometric "teacher." The NeRF’s density field is pre-trained to match the occupancy of this CAD model. This step establishes a solid foundation, ensuring the optimization starts with a plausible shape rather than random noise. This initialization is crucial for preventing the formation of "floaters"—disconnected density clusters that often plague sparse-view reconstructions.

3. Deformation and Pose Optimization

Recognizing that a generic CAD model is rarely a perfect match for a specific real-world object, CAD-NeRF employs a Deformation Implicit Field (DIF). This field learns a continuous warping function that transforms the initial CAD-based density to align precisely with the actual image observations. Simultaneously, the system performs joint optimization of camera poses and a color network. This joint approach allows the model to "wiggle" both the geometry and the camera parameters into a state of optimal alignment with the input pixels.

Experimental Evaluation

CAD-NeRF was evaluated on ShapeNet, ModelNet, and real-world datasets, including the NeRS dataset and custom captures of cars, handbags, and cups.

Key Results

The method demonstrates significant improvements over state-of-the-art baselines like BARF, NeRS, and SPARF in sparse, uncalibrated settings:

  • Reconstruction Quality: On ShapeNet with only 3 views, CAD-NeRF achieved a PSNR of 21.137, significantly higher than BARF (18.860) and NeRS (18.687).
  • Robustness to Sparse Features: Unlike feature-based methods (e.g., SPARF) that fail on texture-less objects, CAD-NeRF’s silhouette-based approach remains effective for smooth surfaces like white cars or sofas.
  • Pose Accuracy: The method drastically reduces pose estimation errors. In 3-view setups, rotation error was limited to 5.273 degrees, whereas competing methods often suffered from errors exceeding 60 degrees due to symmetry-induced flips.

Discussion and Limitations

CAD-NeRF proves that "rough" shape priors are sufficient to guide NeRF optimization in highly constrained environments. However, some limitations remain. The current retrieval algorithm assumes a specific image ordering (e.g., a sequential walk-around) and a relatively consistent camera distance from the object. Future work will focus on relaxing these requirements to accommodate more varied amateur photography styles.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ShapeNetCAD-NeRFPSNR↑21.137+2.28 vs baselinesplit: test · input_views=3
Source quote
L252: Ours │ 21.137 │ 21.669 │ 21.931 │ 0.918 │ 0.929 │ 0.930 │ 0.105 │ 0.082 │ 0.081 │ 0.067 │ 0.058 │ 0.056
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
ShapeNetBARF baselinePSNR↑18.860split: test · input_views=3
Source quote
L248: BARF │ 18.860 │ 18.968 │ 20.161 │ 0.881 │ 0.881 │ 0.901 │ 0.311 │ 0.309 │ 0.236 │ 0.115 │ 0.115 │ 0.092
ModelNetBARF baselinePSNR↑16.763data=synthetic · input_views=unspecified
Source quote
L268: BARF │ 16.763 │ 0.891 │ 0.242
ShapeNetSCNeRF baselinerotation error5.943 degreesinput_views=3
Source quote
L282: SCNeRF │ 5.943 │ 7.083 │ 8.252
BibTeX
@article{wen2025cad,
  author = {Xin Wen and Xuening Zhu and Renjiao Yi and Zhifeng Wang and Chenyang Zhu and Kai Xu},
  title = {{CAD-NeRF: Learning NeRFs from Uncalibrated Few-view Images by CAD Model Retrieval}},
  journal = {Frontiers of Computer Science},
  year = {2025},
  doi = {10.1007/s11704-024-40417-7},
}
Figure