Template NeRF: Towards Modeling Dense Shape Correspondences from Category-Specific Object Images

Jianfei Guo, Zhiyuan Yang, Xi Lin, Qingfu ZhangarXiv 2021

TL;DR

This paper introduces Template-NeRF, a novel method that learns dense shape correspondences between objects of the same category directly from posed 2D images, without requiring 3D supervision. By leveraging a shared NeRF template and incorporating deformation and density correction fields, Template-NeRF enables powerful applications like one-shot annotation transfer and improved 3D reconstruction.

What Problem Does This Paper Address?

Understanding the semantic relationships between objects of the same category is a fundamental challenge in computer vision. Specifically, dense shape correspondences – mapping every point on one object's surface to its corresponding point on another – are crucial for tasks like keypoint detection, part segmentation, and texture transfer. While previous methods often relied on 3D ground truth or manual annotations, this paper tackles the problem of learning these correspondences directly from readily available multi-view posed 2D images, making it more practical and scalable. The goal is to bridge the gap between 2D image-based tasks and the need for rich 3D understanding.

Methods

Template-NeRF builds upon the Neural Radiance Fields (NeRF) framework, extending it to model category-specific object instances and their dense correspondences. The core idea is to use a shared "template" NeRF that captures the common geometry, structure, and appearance of objects within a category.

Here's a breakdown of the key components:

  • Template NeRF: A base NeRF model parameterized by a multi-layer perceptron (MLP) that learns the average shape and appearance of objects in a category. It uses sinusoidal activation functions for smoother representations.
  • Shape Variance Model: This component handles variations in object geometry and structure.
  • Deformation Field: A network that warps the coordinate space of an individual object instance into the template space. This establishes a direct mapping between object points and template points, forming the basis for dense correspondences.
  • Volume Density Correction Field: This field adjusts the density output of the template NeRF to account for structural variations between instances.
  • Appearance Variance Model: This component handles variations in object appearance. It uses a Feature-wise Linear Modulation (FiLM) layer, adapted from StyleGAN, to condition the NeRF's radiance output on a learned appearance latent code. A novel exponential function is applied to the frequencies in the FiLM layer to improve training speed and convergence.
  • Auto-Decoder Framework: The entire model is trained in an auto-decoder fashion, meaning it learns to reconstruct input images from latent codes without explicit 3D supervision.

The training process involves minimizing a reconstruction loss between rendered and ground-truth images, along with several regularization terms (auto-decoder, correction, normal consistency, and smoothness) to stabilize training and encourage desired properties.

Datasets

The paper primarily uses synthetic renderings from ShapeNet-v2 [5] for training and evaluation. This dataset provides a collection of 2D images with associated camera parameters. The authors note that their method can also be applied to real-world data.

Key Insights and Ideas

  • Dense Correspondences from 2D Images: The most significant insight is the demonstration that dense shape correspondences can be learned effectively from posed 2D images alone, eliminating the need for explicit 3D supervision or complex annotation pipelines.
  • Template as a Mediator: Using a shared NeRF template as a "mediator" is a powerful concept. It allows for a unified representation of a category, from which individual instances can be derived through learned deformation and correction fields. This naturally leads to dense correspondences.
  • Decomposition of Variance: Separating shape variance into geometry (deformation) and structure (density correction) allows for more nuanced modeling of object variations.
  • FiLM for Appearance Control: Adapting FiLM for appearance conditioning in NeRF proves effective for learning instance-specific visual characteristics.
  • Practical Applications: The learned correspondences unlock practical applications like one-shot annotation transfer, significantly reducing the effort required for tasks like keypoint detection.

Key Results

  • Shape Reconstruction: Template-NeRF achieves competitive 3D reconstruction results compared to methods like DIF [8] and DIT [72], using only posed image supervision.
  • Dense Shape Correspondences: Qualitative results demonstrate the model's ability to reason dense and semantic correspondences across objects within the same category, even with significant deformations. The consistent coloring in visualizations highlights these correspondences.
  • Annotation Transfer: The learned correspondences enable one-shot annotation transfer, allowing users to annotate a single instance and propagate those annotations across the entire category.

Limitations and Future Work

  • Category-Specific: The current method is category-specific, meaning a separate model needs to be trained for each object category.
  • Computational Cost: While not explicitly detailed, training NeRF-based models is generally computationally intensive.
  • Future Work: The authors suggest exploring the application of Template-NeRF to real-world datasets and investigating its potential for more complex scenarios. The ability to accommodate annotation transfer in a few-shot manner is also highlighted as a key advantage for future applications.

Summary updated

BibTeX
@misc{guo2021template,
  author = {Jianfei Guo and Zhiyuan Yang and Xi Lin and Qingfu Zhang},
  title = {{Template NeRF: Towards Modeling Dense Shape Correspondences from Category-Specific Object Images}},
  year = {2021},
  eprint = {2111.04237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.04237},
}
Figure