GPU-based Pedestrian Detection for Autonomous Driving

Victor Campmany, Sergio Silva, Antonio Espinosa, Juan Carlos Moure, David Vázquez, Antonio M. López

Introduction

Autonomous driving systems require robust environmental perception in real-time. Pedestrian detection is a cornerstone of this requirement, yet it remains computationally intensive due to the high variability in human appearance and environmental conditions. While high-end desktop GPUs offer the necessary processing power, their high energy consumption makes them unsuitable for embedded automotive platforms. This paper addresses this gap by presenting a highly optimized pedestrian detection pipeline tailored for embedded GPU-CPU hybrid platforms, specifically the Nvidia Tegra X1.

Sample input image representing the KITTI vision benchmark resolution used in the study.

Methodology

The proposed pipeline consists of four primary stages: Candidate Generation, Feature Extraction, Classification, and Refinement. The core contribution is the massive parallelization of these stages using CUDA.

Feature Extraction: HOG and LBP

The system utilizes a combination of Histograms of Oriented Gradients (HOG) and Local Binary Patterns (LBP) to capture both shape and texture information.

  • LBP Optimization: The authors transitioned from a naive implementation to a scalable scheme using atomic operations to manage data races during histogram generation.
  • HOG Optimization: By utilizing on-chip shared memory rather than global or local memory, the implementation significantly reduced latency and memory bus stress.
The LBP feature extraction pipeline, showing the transition from the LBP image to cell and block histograms.

Warp-Level SVM Classification

The Sliding Window Support Vector Machine (SW-SVM) often acts as a computational bottleneck. To overcome this, the authors implemented a Warp-level SVM. Instead of the traditional "one thread per window" approach, an entire warp (32 threads) collaborates on a single window. This allows the use of high-speed register shuffle instructions for result summation, bypassing slower main memory accesses.

Experimental Evaluation

The pipeline was evaluated using video sequences at a resolution of 1242 × 375 pixels, typical of the KITTI vision benchmark. Performance was compared across three platforms: an Intel i7 CPU, a desktop Nvidia GTX 960 GPU, and the embedded Nvidia Tegra X1.

Results and Discussion

The optimized pipeline achieved a real-time throughput of 20 FPS on the Tegra X1. Key findings include:

  • Efficiency: The Tegra X1 demonstrated superior power efficiency, reaching 2.0 FPS/Watt—double that of the desktop GTX 960 (0.99 FPS/Watt) and significantly higher than the CPU baseline.
  • Speedup: The GPU-accelerated stages were 8x to 60x faster than their CPU counterparts.
  • Memory Coalescing: Ensuring simultaneous memory access by multiple threads proved more critical for performance than raw mathematical throughput.
  • Cache Constraints: Performance degradation was observed for very large images that exceeded the GPU's L2 cache capacity, highlighting the importance of memory management in high-resolution processing.

Conclusion

This work demonstrates that embedded GPUs can meet the stringent real-time and power-efficiency requirements of autonomous driving. While hand-crafted features like HOG and LBP provide a high-performance baseline, future work will explore applying similar warp-level optimizations to lightweight convolutional neural networks (CNNs) to further improve detection accuracy without sacrificing real-time performance.

Summary updated

Abstract

We propose a real-time pedestrian detection system for the embedded Nvidia Tegra X1 GPU-CPU hybrid platform. The detection pipeline is composed by the following state-of-the-art algorithms: features extracted from the input image are Histograms of Local Binary Patterns (LBP) and Histograms of Oriented Gradients (HOG); candidate generation using Pyramidal Sliding Window technique; and classification with Support Vector Machine (SVM). Experimental results show that the Tegra ARM platform is two times more energy efficient than a desktop GPU and at least 8 times faster than a desktop multicore CPU.
BibTeX
@inproceedings{campmany2016gpu,
  author = {Victor Campmany and Sergio Silva and Antonio Espinosa and Juan Carlos Moure and David Vázquez and Antonio M. López},
  title = {{GPU-based Pedestrian Detection for Autonomous Driving}},
  booktitle = {ICCS},
  year = {2016},
  url = {https://openreview.net/forum?id=HnfPlpgtUl5},
}
Figure