Visual Compiler: Synthesizing a Scene-Specific Pedestrian Detector and Pose Estimator

Namhoon Lee, Xinshuo Weng, Vishnu Naresh Boddeti, Yu Zhang, Fares Beainy, Kris M. Kitani, Takeo KanadearXiv 2016

Abstract

We introduce the concept of a Visual Compiler that generates a scene-specific pedestrian detector and pose estimator without any pedestrian observations. Given a single image and auxiliary scene information in the form of camera parameters and geometric layout of the scene, the Visual Compiler first infers geometrically and photometrically accurate images of humans in that scene through the use of computer graphics rendering. Using these renders we learn a scene-and-region specific spatially-varying fully convolutional neural network, for simultaneous detection, pose estimation and segmentation of pedestrians. We demonstrate that when real human annotated data is scarce or non-existent, our data generation strategy can provide an excellent solution for bootstrapping human detection and pose estimation. Experimental results show that our approach outperforms off-the-shelf state-of-the-art pedestrian detectors and pose estimators that are trained on real data.

Introduction: The "Cold Start" Problem in Surveillance

Deep learning models for computer vision are notoriously data-hungry. While general pedestrian detectors exist, they often struggle when deployed in new, specific environments—such as a high-perched security camera with a unique angle—because the "domain gap" between the general training data and the deployment scene is too wide.

Manually labeling thousands of images for every new camera installation is impractical. This research addresses the "cold start" problem: how to bootstrap a high-performing, scene-specific detector and pose estimator for a new surveillance setup without using a single frame of real, labeled human data.

The Visual Compiler Framework

The authors propose a two-stage pipeline that eliminates the need for real-world labeled data by synthesizing scene-specific training sets using computer graphics.

Overview of the Visual Compiler pipeline, showing the transition from scene geometry and rendered pedestrians to a trained ScenePoseNet and its final structured output.

The "Visual Compiler" takes a scene description—a single image, camera parameters, and coarse 3D geometry—and "compiles" it into a training dataset. Using a library of 139 human models, it renders thousands of physically grounded images of pedestrians. Because it is a simulation, the system generates perfect, noise-free ground truth for bounding boxes, 2D/3D skeletal joints, and segmentation masks. By knowing the ground plane and camera height, the system avoids "floating" or "giant" pedestrians, ensuring the model learns the specific perspective distortions of that exact camera.

ScenePoseNet Architecture

The core of the detection system is ScenePoseNet (SPN), a fully convolutional neural network (FCN) designed for simultaneous detection, pose estimation, and segmentation.

The ScenePoseNet architecture, a fully convolutional network that processes input images through a series of residual and spatial-belief modules to produce multi-task outputs.

Key architectural features include:

  • Residual Units: These allow for deeper, more stable training by facilitating gradient flow through the network.
  • Spatial-Belief (SB) Modules: These modules aggregate image features with "belief maps" (heatmaps) of body parts. This allows the network to learn spatial constraints—for example, knowing that a foot should be a certain distance from a knee given the camera's perspective.

Experimental Results

The model was trained purely on synthetic data (typically 50,000 renders) and evaluated on standard benchmarks like the Towncenter and PETS 2006 datasets to prove real-world utility.

Detection and Pose Accuracy

On the Towncenter dataset, ScenePoseNet achieved an Average Precision (AP) of 0.768, outperforming general-purpose models like Faster R-CNN (0.732) and Deformable Parts Models (0.724). In pose estimation, SPN significantly outperformed off-the-shelf estimators, achieving a ~45% detection rate at a strict threshold (0.5 PCKh), while the DPM+CPM pipeline trailed at ~32%.

Efficiency and Multi-Tasking

By coupling tasks into a single FCN, the model is over 100% faster than running a separate detector and pose estimator (0.18s vs 0.37s per frame on a Titan-X GPU). The multi-task nature of the network allows it to refine its belief that a person exists because it found a valid arrangement of body parts, and vice versa.

Conclusion

The Visual Compiler demonstrates that synthetic data tailored to a specific scene can outperform general real-world data. This challenges the conventional wisdom that real data is always superior and provides an excellent solution for bootstrapping human detection in scenarios where annotated data is scarce or non-existent. Future work may focus on automatically extracting scene geometry to further reduce the manual setup required.

Summary updated

BibTeX
@misc{lee2016visual,
  author = {Namhoon Lee and Xinshuo Weng and Vishnu Naresh Boddeti and Yu Zhang and Fares Beainy and Kris M. Kitani and Takeo Kanade},
  title = {{Visual Compiler: Synthesizing a Scene-Specific Pedestrian Detector and Pose Estimator}},
  year = {2016},
  eprint = {1612.05234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.05234},
}
Figure