Abstract
Training 3D-aware Generative Adversarial Networks (GANs) usually requires precise camera pose labels, which are nearly impossible to obtain for "in-the-wild" image collections. This paper introduces Template Feature Field (TeFF), a method that learns a canonical 3D semantic template to estimate camera poses on-the-fly. By leveraging self-supervised semantic features, TeFF enables the generation of high-quality, full 360° shapes from unposed images of diverse categories such as elephants, cars, and planes.
Introduction
3D-aware GANs have made significant progress in synthesizing 3D shapes from 2D images. However, state-of-the-art models like EG3D rely on "posed" datasets, where every training image is labeled with its exact camera angle. For real-world, "in-the-wild" datasets (e.g., random internet photos), these labels do not exist. Previous attempts to learn camera poses and 3D content simultaneously often fail when faced with complex pose distributions, frequently resulting in "half-baked" geometry where the model cannot distinguish between changes in camera angle and object orientation.
Methodology: The Template Feature Field
The authors propose a framework that disentangles pose estimation from 3D generation using a Template Feature Field (TeFF). The approach relies on three core pillars:
- Dual-Field Generation: The generator produces both a Radiance Field (RGB color and density) and a Semantic Feature Field that shares the same density (σ). This ensures that the pose estimated via semantic features is geometrically valid for the final 3D shape.
- Leveraging DINO Features: To make the feature field meaningful, the model uses DINO features from a self-supervised Vision Transformer. Unlike raw pixels, which vary wildly with lighting and color, DINO features are semantically consistent across different instances of an object category.
- The 3D Template: By taking the exponential moving average (EMA) of the generator, the model maintains a "canonical" 3D template of the object category (e.g., the "average" car or plane).
To find the pose of a real training image, the model extracts its 2D DINO features and matches them against the 3D template. To maintain efficiency during training, the authors discretize the Azimuth and Elevation for a grid search and utilize Phase Correlation—a frequency-domain technique—to solve for Scale and In-plane rotation instantly. Instead of picking a single best pose, they sample from a probability distribution of matching scores to avoid local minima.
Experimental Evaluation
The model was evaluated on four challenging datasets: ShapeNet Cars (synthetic validation), CompCars (110,000 real-world images), SDIP Elephant (20,000 images), and LSUN Plane (130,000 images).
Key Results
- Complete Geometry: Unlike baselines such as 3DGP and PoF3D, which often produce "flat" or partial objects, TeFF successfully recovers full 360° geometry.
- Quantitative Superiority: On ShapeNet Cars, TeFF achieved a KL Divergence of 0.05 for azimuth estimation, vastly outperforming PoF3D (4.48) and 3DGP (40.45).
- Image Quality: TeFF maintains high realism while providing accurate 3D structures. On the CompCars dataset, it achieved a Depth Error of 0.31, compared to 4.02 for 3DGP.
Discussion and Limitations
While TeFF marks a significant step forward, it faces certain limitations. The current camera model assumes a simple projection, which can struggle with extreme perspective distortion (e.g., close-up wide-angle shots). Additionally, the model assumes a rigid "mean" shape and does not yet account for articulated parts, such as an elephant moving its trunk. Future work may explore using multiple templates to handle datasets with high intra-class variance, such as collections containing both sedans and trucks.
Summary updated