3D Congealing: 3D-Aware Image Alignment in the Wild

Yunzhi Zhang, Zizhang Li, Amit Raj, Andreas Engelhardt, Yuanzhen Li, Tingbo Hou, Jiajun Wu, Varun Jampani

Introduction

Aligning images of objects into a shared space is a fundamental task in computer vision. While 2D alignment (congealing) is well-established, 3D alignment remains a significant challenge, particularly when dealing with "in-the-wild" data. 3D Congealing introduces a framework that takes unannotated collections of semantically similar objects—such as various sculptures, cars, or animals—and aligns them into a shared 3D canonical space. By leveraging the 3D "common sense" of pre-trained generative models alongside semantic image features, the system recovers 3D shapes and camera poses without requiring prior templates or camera metadata.

The Challenge of Shape-Pose Entanglement

The primary difficulty in 3D alignment is the entanglement of shape and pose. To determine an object's 3D shape, one typically needs the camera pose; conversely, estimating pose usually requires a known 3D model. This problem is exacerbated in real-world scenarios where images are not of the same object, but of different instances of a category (e.g., 50 different cats). Traditional 3D reconstruction methods like NeRF or Structure-from-Motion (SfM) fail here because they rely on pixel-level consistency, which is absent across different object instances.

Methodology: Fusing Generative Priors with Semantic Features

The 3D Congealing pipeline employs a "template-followed-by-implicit-deformation" approach built on three pillars:

  1. Generative Guidance: The framework uses a pre-trained text-to-image diffusion model (Stable Diffusion) as a 3D prior. Through Score Distillation Sampling (SDS), it distills a 3D Neural Radiance Field (NeRF) that represents the object category. Textual Inversion is used to find a unique embedding that specifically matches the input image collection.
  2. Semantic Consistency: To handle variations in texture and lighting, the system utilizes features from DINO, a self-supervised vision transformer. These semantic features allow the model to recognize corresponding parts (like a "nose" or "hand") across different instances, facilitating alignment based on meaning rather than raw pixels.
  3. Joint Optimization: The model optimizes a dual loss function. A generative loss ensures the 3D shape remains plausible according to the diffusion model, while a data reconstruction loss ensures the rendered 3D shape matches the semantic features and masks of the input images.
A visualization of the recovered 3D canonical space, where different instances are aligned to a shared geometric template.

Experimental Evaluation and Results

The authors evaluated 3D Congealing across several challenging datasets, including NAVI (varying illumination), Pix3D (furniture), and SPair-71k (deformable objects).

Key findings include:

  • Superior Pose Estimation: On the NAVI dataset, the method significantly outperformed existing pose-free baselines like GNeRF and PoseDiffusion.
  • Cross-Instance Robustness: The model successfully aligned diverse species (e.g., different breeds of dogs) to a single shared 3D structure, demonstrating its ability to handle geometric variation.
  • Downstream Applications: The established canonical coordinate mappings enable advanced editing tasks, such as texture propagation—where a pattern from one object is mapped onto another in 3D—and more consistent image editing.

Discussion and Future Work

While 3D Congealing represents a major step forward, it faces limitations in computational efficiency, currently requiring approximately two hours for full optimization and pose refinement. Additionally, while it handles some deformation, it does not yet explicitly model articulated joints (e.g., human skeletal movement). Future research will likely focus on accelerating the distillation process and incorporating explicit deformation models to better handle highly articulated subjects.

Summary updated

BibTeX
@inproceedings{zhang2024d,
  author = {Yunzhi Zhang and Zizhang Li and Amit Raj and Andreas Engelhardt and Yuanzhen Li and Tingbo Hou and Jiajun Wu and Varun Jampani},
  title = {{3D Congealing: 3D-Aware Image Alignment in the Wild}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73232-4\_22},
}
Figure