TL;DR
This paper tackles the challenge of deploying real-time 3D hand pose estimation on resource-constrained devices by proposing a lightweight, deeply-supervised, pruned hourglass network. They achieve significant speedups with minimal accuracy loss, making hand tracking more accessible for applications beyond high-end hardware.
What Problem Does This Paper Address?
Real-time 3D hand pose estimation is crucial for many applications, from augmented reality to robotics. However, state-of-the-art deep learning models for this task are often computationally expensive, requiring powerful GPUs and significant memory. This high computational demand severely limits their deployment on resource-constrained devices like mobile phones or embedded systems. The authors aim to bridge this gap by developing a model that is both efficient enough for real-time performance on CPUs and maintains high accuracy, addressing the under-explored problem of network efficiency in this domain.
Methods
The core of the proposed solution lies in a two-level pruning strategy applied to a stacked hourglass network, a popular architecture for pose estimation.
- Stack Pruning: The authors observed that the latter stacks in a stacked hourglass network contribute less to overall accuracy. They prune half of these stacks, effectively reducing the network's depth.
- Level Pruning with Deep Supervision: The remaining hourglass module is further pruned by introducing deep supervision. This technique involves adding auxiliary classifiers to intermediate decoder layers. The losses from these auxiliary classifiers are combined with the main loss, allowing for finer-grained control over the pruning process. Deep supervision helps to overcome underfitting in smaller networks and acts as a proxy for feature quality, guiding the training process more effectively.
- Deployment Optimization: To further enhance real-time performance on CPUs, the authors leverage the Intel OpenVINO toolkit. This toolkit optimizes deep learning models for Intel hardware by applying techniques like path folding, batch normalization fusion, and node merging, enabling efficient execution on CPUs.
Datasets
The experiments were conducted on two publicly available datasets:
- NYU Dataset: This dataset contains depth images and is used for both training and evaluation, particularly for level-pruning and ablation studies. It offers a broad coverage of hand poses.
- ICVL Dataset: This dataset also consists of depth images and is used for evaluating the method's performance and comparing it with state-of-the-art approaches.
Key Insights and Ideas
- Redundancy in Stacked Hourglasses: The paper demonstrates that later stacks in a stacked hourglass network are less critical for accuracy, allowing for significant depth reduction without substantial performance degradation.
- Deep Supervision as a Pruning Enabler: Deep supervision is shown to be a powerful tool for enabling aggressive pruning. It helps to maintain accuracy by providing richer supervisory signals to intermediate layers, mitigating underfitting and improving generalization.
- CPU Optimization is Key for Deployment: The authors highlight that for real-world deployment on resource-constrained devices, optimizing for CPUs is more practical than relying on GPUs. Techniques like AVX instructions and toolkits like OpenVINO are crucial for achieving this.
- Mean-Shift Algorithm Bottleneck: Interestingly, the paper identifies the mean-shift algorithm (used for post-processing) as a significant bottleneck on GPUs, even more so than the regression network itself. This explains why optimized CPU execution can sometimes outperform GPU execution for the entire pipeline.
Key Results
- Significant Speedup: The pruned network achieves an average running time of 32 ms (31.3 FPS) before deployment optimization, a substantial improvement over the original network's 44 ms (22.7 FPS).
- Reduced Model Size: The pruned model has approximately half the number of parameters (2.92M vs. 5.83M) compared to the original dense 3D regression network.
- Minimal Accuracy Loss: The average 3D joint error increases by a small margin (e.g., 11.9 mm for the 1-stack-L3 w/DS model compared to 10.23 mm for the original).
- OpenVINO Boost: With OpenVINO optimization, the model can run at 56 FPS on CPUs, outperforming the GPU performance (44 FPS) reported by the original method.
- Deep Supervision Benefits: Retraining with deep supervision leads to faster convergence during training compared to retraining without it, even though the final accuracy is similar.
Limitations and Future Work
- Level Pruning Sensitivity: Aggressive level pruning (e.g., to L1) can lead to significant accuracy degradation, likely due to insufficient resolution for accurate prediction.
- Failure Cases: Failure cases are observed in images with noise and severe self-occlusions.
- Future Work: The authors suggest further optimization directions, including pipeline throughput improvements, heterogeneous computation, and batch processing. They also note that general-purpose compression methods might not be optimal for all network types, suggesting a need for more dedicated strategies.
Summary updated