Abstract
Recent research on human pose estimation exploits complex structures to improve performance on benchmark datasets, ignoring the resource overhead and inference speed when the model is actually deployed. In this paper, we lighten the computation cost and parameters of the deconvolution head network in SimpleBaseline and introduce an attention mechanism that utilizes original, inter-level, and intra-level information to intensify the accuracy. Additionally, we propose a novel loss function called heatmap weighting loss, which generates weights for each pixel on the heatmap that makes the model more focused on keypoints. Experiments demonstrate our method achieves a balance between performance, resource volume, and inference speed. Specifically, our method can achieve 65.3 AP score on COCO test-dev, while the inference speed is 55 FPS and 18 FPS on the mobile GPU and CPU, respectively.
Introduction
Human Pose Estimation (HPE) has seen significant advancements through the use of deep neural networks. However, many state-of-the-art models are "heavyweights," requiring substantial computational power and memory, which hinders deployment on resource-constrained edge devices like smartphones or robots.
A critical observation made in this work is the "FLOPs Trap": theoretical efficiency (low FLOP counts) does not always translate to practical inference speed. For instance, models like Lite-HRNet utilize complex, multi-branch structures that do not parallelize well on hardware, making them slower in practice than simpler, theoretically "heavier" models. This research aims to develop a "SimpleBaseline" that is optimized for real-world mobile hardware, balancing accuracy with high inference speed.
Methodology
The proposed approach slims down the standard HPE architecture through three primary innovations:
1. Lightweight Deconvolution Head
In standard models, the deconvolution head used for upsampling is computationally expensive. We replace standard deconvolution layers with a combination of depthwise deconvolution and pointwise convolution. This "MobileNet-style" modification reduces the head's computational cost by approximately 16 times and slashes parameters from 9.6M to 3.1M.
2. Triple-Branch Attention Mechanism
To compensate for the accuracy loss resulting from network simplification, we introduce a triple-branch attention block. This mechanism captures complex feature relationships without creating data flow bottlenecks. It consists of:
- Channel Attention: Focuses on identifying which feature channels are most informative.
- Spatial Attention: Identifies where in the image relevant features are located.
- Identity Connection: Preserves original local features to prevent information loss during compression.
3. Heatmap-Weighting Loss
Standard models typically employ Mean Square Error (MSE) loss, which treats every pixel on the heatmap with equal importance. However, pixels distant from a joint are less critical for localization than those immediately surrounding it. We propose a novel Heatmap-Weighting Loss that assigns higher weights to pixels near ground-truth keypoints, forcing the model to prioritize precise joint localization.
Experiments and Results
The model was evaluated on the COCO (Common Objects in Context) and MPII Human Pose datasets. On the COCO test-dev set, the method achieved a 65.3 AP score at 256x192 resolution and 69.2 AP at 384x288 resolution.
In terms of efficiency, the model demonstrated superior performance on mobile-grade hardware. It reached 55.2 FPS on a mobile GPU and 18.3 FPS on a CPU. Compared to ViPNAS, a leading lightweight model, our approach was approximately 2.4x faster on GPU and 4x faster on CPU while maintaining competitive accuracy levels.
Conclusion
This paper presents a hardware-friendly approach to lightweight human pose estimation. By redesigning the deconvolution head and introducing a targeted attention mechanism and loss function, we achieve a significant balance between performance and resource efficiency. While the Heatmap-Weighting Loss provides a modest accuracy gain, it introduces a valuable optimization strategy for the field. Future work will explore integrating this lightweight head into bottom-up systems for multi-person pose estimation.
Summary updated