Learning Canonical 3D Object Representation for Fine-Grained Recognition

Sunghun Joung, Seungryong Kim, Minsu Kim, Ig-Jae Kim, Kwanghoon Sohn

Abstract

We propose a novel framework for fine-grained object recognition that learns to recover object variation in 3D space from a single image, trained on an image collection without using any ground-truth 3D annotation. We accomplish this by representing an object as a composition of 3D shape and its appearance, while eliminating the effect of camera viewpoint, in a canonical configuration. Unlike conventional methods modeling spatial variation in 2D images only, our method is capable of reconfiguring the appearance feature in a canonical 3D space, thus enabling the subsequent object classifier to be invariant under 3D geometric variation. Our representation also allows us to go beyond existing methods, by incorporating 3D shape variation as an additional cue for object recognition. To learn the model without ground-truth 3D annotation, we deploy a differentiable renderer in an analysis-by-synthesis framework. By incorporating 3D shape and appearance jointly in a deep representation, our method learns the discriminative representation of the object and achieves competitive performance on fine-grained image recognition and vehicle re-identification. We also demonstrate that the performance of 3D shape reconstruction is improved by learning fine-grained shape deformation in a boosting manner.

Introduction

Fine-grained recognition—distinguishing between very similar categories like specific bird species or car models—is notoriously difficult because objects appear differently depending on their pose, scale, and the camera's viewpoint. Traditional deep learning models try to learn "invariance" to these changes, but they often struggle when geometric deformations are severe.

Existing solutions usually rely on 2D spatial warping or part-based detectors. However, these methods ignore the fundamental reality that objects exist in 3D. A bird's wing looks different from the side than from the front, not just because of a 2D shift, but because of 3D geometry. The challenge is that collecting 3D data (like CAD models) for every bird species is nearly impossible. This research addresses the need to learn 3D structures using only 2D image collections.

Methodology

The proposed framework utilizes an analysis-by-synthesis approach to disentangle object properties without 3D supervision. The pipeline consists of several key stages:

  1. Disentanglement: An image encoder takes a single 2D image and predicts three independent factors:
  2. Appearance Flow: Mapping pixels from the 2D image onto a 3D template.
  3. 3D Shape Deformation: "Sculpting" a generic 3D template into the specific shape of the object.
  4. Camera Viewpoint: Determining the angle and distance of the object.
  5. Canonical Representation: Instead of analyzing the raw image, the model warps features into a "canonical 3D space." In this space, specific anatomical parts (like a beak) are always at the same coordinate, regardless of the bird's pose in the original photo.
  6. Positional Encoding (PE-4): To help the model understand coordinates on a curved 3D surface, the authors use a 4D periodic positional encoding. This ensures that the "wrap-around" nature of a 3D object is mathematically continuous.
  7. Differentiable Rendering: To train without 3D labels, the model "renders" its predicted 3D shape and appearance back into a 2D image. It then compares this reconstruction to the original input to drive the learning process.
The proposed pipeline disentangles viewpoint, shape, and appearance to create a canonical 3D representation.

Key Insights

Shape as a Discriminative Feature

Most recognition models only look at "texture" (color and patterns). This paper argues that the 3D shape itself—the specific curve of a beak or the aerodynamic profile of a car—is a powerful discriminative cue. By explicitly modeling shape deformation, the classifier gains an additional dimension of information for distinguishing similar species.

The model captures subtle 3D shape variations, such as beak and tail shapes, which serve as additional cues for recognition.

3D vs. 2D Warping

Unlike 2D spatial transformers that just stretch an image, mapping to a 3D canonical space allows the model to understand parts that might be foreshortened or hidden by the camera angle. By using sinusoidal positional encoding, the model treats the 3D surface as a continuous loop, which is more effective for learning features on complex meshes than standard linear coordinate maps.

Results

The model was evaluated on three standard benchmarks: CUB-Birds, Stanford-Cars, and Veri-776 (vehicle re-identification). The proposed method consistently outperformed existing 2D-based and part-based models:

  • Accuracy: Achieved 88.4% on CUB-Birds and 94.7% on Stanford-Cars, surpassing previous state-of-the-art methods like TASN and ACNet.
  • Vehicle Re-ID: On the Veri-776 dataset, it achieved a Mean Average Precision (mAP) of 0.801, proving highly effective at recognizing the same vehicle from wildly different camera angles.
  • Reconstruction: Even without 3D supervision, the model produced more accurate 3D meshes than specialized reconstruction baselines.

Conclusion

While the model achieves impressive results, it faces hurdles with objects undergoing "large articulations," such as a human performing gymnastics, or cases of heavy occlusion where significant portions of the object are hidden. However, for fine-grained categories like birds and vehicles, the transition from 2D spatial invariance to 3D canonical representation marks a significant step forward in robust object recognition.

Summary updated

BibTeX
@inproceedings{joung2021learning,
  author = {Sunghun Joung and Seungryong Kim and Minsu Kim and Ig-Jae Kim and Kwanghoon Sohn},
  title = {{Learning Canonical 3D Object Representation for Fine-Grained Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=RS3QG68PIK},
}
Figure