ViewNeRF: Unsupervised Viewpoint Estimation Using Category-Level Neural Radiance Fields

Octave Mariotti, Oisin Mac Aodha, Hakan Bilen · DOI

Abstract

Estimating the 3D viewpoint of an object from a single image is a fundamental task in computer vision, yet traditional approaches rely heavily on expensive ground-truth pose labels or struggle to generalize across object categories. We present ViewNeRF, a novel framework that achieves state-of-the-art unsupervised viewpoint estimation by integrating a conditional Neural Radiance Field (NeRF) with a feed-forward pose predictor. By leveraging the geometric consistency of NeRFs as a supervisory signal, ViewNeRF eliminates the need for pose annotations during training. Our method demonstrates significant improvements in accuracy on both synthetic and real-world datasets while providing a five-order-of-magnitude speedup over optimization-based alternatives.

Introduction

Understanding the spatial relationship between a camera and an object is critical for applications ranging from robotic manipulation to augmented reality. Historically, this problem has been approached through two primary lenses: supervised learning and Structure from Motion (SfM). Supervised methods require massive datasets with precise 3D pose labels, which are difficult to acquire for diverse real-world objects. Conversely, SfM techniques infer poses from multiple views of a single scene but often fail to generalize to entire categories (e.g., "all cars") where shape and texture vary significantly.

Existing unsupervised category-level methods often rely on simplified 3D representations, such as voxels or coordinate-based decoders, which lack the high-fidelity detail necessary for precise estimation. While Neural Radiance Fields (NeRFs) offer superior 3D reconstruction, they typically require known camera poses for training. ViewNeRF bridges this gap by using a NeRF as a geometrically consistent "teacher" to train a pose estimator in a completely unsupervised, category-wide fashion.

Methodology

ViewNeRF adopts an analysis-by-synthesis framework. The architecture is composed of three primary neural components that work in tandem to reconstruct a scene from a predicted viewpoint.

Architectural Components

  1. Pose Predictor ($f_p$): Utilizing an EfficientNet backbone, this network processes an input image to predict its rotation and translation relative to a canonical frame.
  2. Appearance Encoder ($f_a$): This module extracts a latent "object code" from a source image, capturing the specific instance's unique shape and textural characteristics.
  3. Conditional NeRF Decoder ($f_r$): A compact NeRF model that takes the object code and the predicted pose to render a reconstructed image. Because the NeRF is constrained by 3D geometry, it forces the pose predictor to find physically plausible viewpoints.

Training Strategies for Unsupervised Learning

To overcome the inherent instabilities of learning poses from scratch, ViewNeRF introduces three key innovations:

  • Multi-hypothesis Prediction: To avoid local minima, the predictor generates multiple pose candidates. The model selects the candidate that yields the lowest reconstruction error, allowing the network to explore the pose space effectively during early training.
  • Pose Regularization: To prevent "training collapse"—where the model predicts a single static pose for all images—the authors enforce a distribution matching constraint. The predicted poses in a batch are regularized to match a prior distribution, such as a uniform distribution over a sphere.
  • Full-Image Perceptual Loss: Unlike standard NeRFs that sample random pixels, ViewNeRF renders low-resolution full images. This enables the use of a VGG-based perceptual loss, allowing the model to recognize global structural features like headlights or edges, which are vital for determining orientation.

Experimental Evaluation

The framework was evaluated across three diverse data environments:

  • ShapeNet-SRN (Cars and Chairs): A synthetic benchmark for category-level 3D reconstruction.
  • Freiburg Cars: A real-world dataset featuring handheld video sequences of vehicles with complex lighting and reflections.
  • NeRF Synthetic: Single-scene datasets (e.g., Lego, Ship) used to benchmark against other pose-free NeRF methods like GNeRF.

Results and Discussion

ViewNeRF establishes a new performance ceiling for unsupervised viewpoint estimation. On the ShapeNet Cars benchmark, the model achieved 70.0% accuracy (within a 10° threshold), a significant jump from the previous unsupervised leader, ViewNet, which reached 61.2%.

In real-world applications, the robustness of the NeRF teacher became even more apparent. On the Freiburg Cars dataset, ViewNeRF maintained 73.5% accuracy, whereas ViewNet dropped to 50.0%, frequently failing to distinguish the front of a vehicle from the rear. This suggests that the 3D consistency of NeRF prevents the model from "cheating" by warping 2D textures to fit incorrect poses.

Furthermore, ViewNeRF offers a massive leap in computational efficiency. By utilizing a feed-forward predictor rather than test-time optimization, it processes samples in approximately 0.4 milliseconds. In comparison, optimization-based methods like CodeNeRF require roughly 38,400 milliseconds per sample, making ViewNeRF five orders of magnitude faster and suitable for real-time applications.

Conclusion and Future Work

ViewNeRF demonstrates that high-fidelity 3D representations can serve as powerful supervisory signals for pose estimation without the need for manual labels. While the current iteration requires multi-view pairs for training and foreground masks for optimal performance, it represents a major step toward truly unsupervised 3D understanding. Future research will focus on relaxing the multi-view requirement to enable learning from "in-the-wild" single-image collections and improving performance in complex, unsegmented backgrounds.

Summary updated

BibTeX
@inproceedings{mariotti2022viewnerf,
  author = {Octave Mariotti and Oisin Mac Aodha and Hakan Bilen},
  title = {{ViewNeRF: Unsupervised Viewpoint Estimation Using Category-Level Neural Radiance Fields}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=Nzt3rjF6Vs},
}
Figure