Predicting Camera Viewpoint Improves Cross-Dataset Generalization for 3D Human Pose Estimation

Zhe Wang, Daeyun Shin, Charless C. Fowlkes

In the world of computer vision, monocular 3D human pose estimation—the art of predicting 3D skeletal joints from a single 2D image—has made massive leaps. However, there is a nagging "dirty secret" in the field: models that perform beautifully on the dataset they were trained on often crumble when shown images from a different source.

In their paper, Predicting Camera Viewpoint Improves Cross-dataset Generalization for 3D Human Pose Estimation, researchers from UC Irvine identify a major culprit for this failure: camera viewpoint bias. They propose a surprisingly simple fix that significantly boosts a model's ability to generalize to new environments.

TL;DR

3D human pose models often overfit to the specific camera angles found in their training data, leading to poor performance on new datasets. By adding a simple auxiliary task—forcing the model to predict the camera's viewpoint relative to the person's torso—the researchers significantly improved cross-dataset generalization and achieved state-of-the-art results across five major benchmarks.

What Problem Does This Paper Address?

The core challenge is dataset bias. Imagine training a model on Human3.6M, a popular dataset filmed in a controlled lab with cameras at eye level. If you then test that model on 3DHP, which includes footage from high-mounted ceiling cameras, the model struggles.

The authors argue that models aren't just learning "human pose"; they are accidentally memorizing the specific distribution of camera angles unique to each dataset. When the camera moves to an unfamiliar angle, the model's internal logic breaks. The goal of this paper is to find a way to make these models "viewpoint-invariant" so they can work anywhere, regardless of where the camera is placed.

Methods

The researchers started with a standard baseline architecture (a ResNet backbone followed by deconvolutional layers to produce 3D heatmaps). Their novel contribution is the addition of an auxiliary viewpoint branch.

  1. Body-Centered Coordinates: They defined a canonical coordinate system based on the human torso (using the pelvis and shoulders).
  2. Viewpoint as a Target: They calculated the rotation (represented as a quaternion) between the camera and this body-centered frame. This represents the "viewpoint."
  3. The Auxiliary Task: During training, the model is forced to perform two tasks simultaneously:
  4. Predict the 3D joint locations (the main goal).
  5. Predict the camera viewpoint (the auxiliary goal).
  6. Classification vs. Regression: Interestingly, they found that quantizing the viewpoint space into 100 clusters and treating it as a classification problem worked better than trying to regress the exact rotation.

At test time, the viewpoint branch is simply discarded. Its only purpose is to act as a "regularizer" during training, forcing the backbone network to learn features that understand the relationship between the camera and the body.

Datasets

The study is impressively thorough, evaluating across five major 3D human pose datasets:

  • Human3.6M (H36M): The "gold standard" lab-based dataset.
  • GPA: A recent dataset focused on monocular images.
  • SURREAL: A large-scale synthetic dataset.
  • 3DPW: "In-the-wild" footage captured with handheld cameras.
  • 3DHP (MPI-INF-3DHP): A dataset with diverse viewpoints, including outdoor and overhead shots.

Key Insights and Ideas

  • Viewpoint is the Primary Bias: Using UMAP (a visualization technique), the authors showed that once you factor out camera viewpoint and body size, the actual "poses" (the way people move) are remarkably similar across all these different datasets. The "gap" between datasets is mostly just the camera angle.
  • Multi-task Learning as a Shield: By forcing the model to predict the viewpoint, the researchers prevent the model from "ignoring" the camera angle. It forces the internal representations to be aware of the 3D geometry of the scene, which prevents it from overfitting to the specific "look" of a single dataset.
  • The "Aha" Moment: The viewpoint prediction doesn't even need to be perfect to help. Even a rough classification of the camera angle is enough to guide the model toward learning more robust, generalizable features for the actual pose estimation task.

Key Results

The results were consistent and significant across the board. By adding the viewpoint loss:

  • Error Reduction: When training on H36M and testing on other datasets, they saw an average error reduction of 10.6 mm (MPJPE). When training on GPA, the cross-dataset error dropped by a staggering 18.6 mm.
  • State-of-the-Art: The proposed method achieved the best results to date across all five datasets simultaneously, filling in many "missing entries" in the literature where previous models had failed to generalize.
  • Robustness: The model became much more resilient to "extreme" angles (like high-elevation ceiling shots) that usually cause standard models to fail.

Limitations and Future Work

While the results are strong, the authors note a few areas for growth:

  • 2D Dependency: The model still relies on 2D joint extractions (soft-argmax), which can be a bottleneck if the 2D detections are poor due to heavy occlusion.
  • Torso-Centric: The viewpoint is defined relative to the torso. While this works for most upright poses, it might be less effective for extremely articulated or floor-based movements (like wrestling or yoga) where the "up" direction of the torso is ambiguous.
  • Future Directions: The authors suggest exploring more complex auxiliary tasks, such as predicting the 3D shape of the environment or using temporal information (video) to further stabilize the viewpoint.

Final Thought: This paper is a great reminder that sometimes the best way to solve a hard problem (like cross-dataset generalization) isn't to build a bigger model, but to give the model a smarter "side quest" during training.

Summary updated

BibTeX
@inproceedings{wang2020predicting,
  author = {Zhe Wang and Daeyun Shin and Charless C. Fowlkes},
  title = {{Predicting Camera Viewpoint Improves Cross-Dataset Generalization for 3D Human Pose Estimation}},
  booktitle = {Workshops @ ECCV},
  year = {2020},
  url = {https://openreview.net/forum?id=fYBSjisZFw},
}
Figure