PoseC3D

August 30, 2023 ยท View on GitHub

Revisiting Skeleton-based Action Recognition

Abstract

Human skeleton, as a compact representation of human action, has received increasing attention in recent years. Many skeleton-based action recognition methods adopt graph convolutional networks (GCN) to extract features on top of human skeletons. Despite the positive results shown in previous works, GCN-based methods are subject to limitations in robustness, interoperability, and scalability. In this work, we propose PoseC3D, a new approach to skeleton-based action recognition, which relies on a 3D heatmap stack instead of a graph sequence as the base representation of human skeletons. Compared to GCN-based methods, PoseC3D is more effective in learning spatiotemporal features, more robust against pose estimation noises, and generalizes better in cross-dataset settings. Also, PoseC3D can handle multiple-person scenarios without additional computation cost, and its features can be easily integrated with other modalities at early fusion stages, which provides a great design space to further boost the performance. On four challenging datasets, PoseC3D consistently obtains superior performance, when used alone on skeletons and in combination with the RGB modality.

Pose Estimation Results


Keypoint Heatmap Volume Visualization


Limb Heatmap Volume Visualization


Results and Models

FineGYM

frame sampling strategypseudo heatmapgpusbackboneMean Top-1testing protocolFLOPsparamsconfigckptlog
uniform 48keypoint8SlowOnly-R5093.510 clips20.6G2.0Mconfigckptlog
uniform 48limb8SlowOnly-R5093.610 clips20.6G2.0Mconfigckptlog

NTU60_XSub

frame sampling strategypseudo heatmapgpusbackbonetop1 acctesting protocolFLOPsparamsconfigckptlog
uniform 48keypoint8SlowOnly-R5093.610 clips20.6G2.0Mconfigckptlog
uniform 48limb8SlowOnly-R5093.510 clips20.6G2.0Mconfigckptlog
Fusion94.0

UCF101

frame sampling strategypseudo heatmapgpusbackbonetop1 acctesting protocolFLOPsparamsconfigckptlog
uniform 48keypoint8SlowOnly-R5086.810 clips14.6G3.1Mconfigckptlog

HMDB51

frame sampling strategypseudo heatmapgpusbackbonetop1 acctesting protocolFLOPsparamsconfigckptlog
uniform 48keypoint8SlowOnly-R5069.610 clips14.6G3.0Mconfigckptlog

Kinetics400

frame sampling strategypseudo heatmapgpusbackbonetop1 acctesting protocolFLOPsparamsconfigckptlog
uniform 48keypoint8SlowOnly-R5047.410 clips19.1G3.2Mconfigckptlog

You can follow the guide in Preparing Skeleton Dataset to obtain skeleton annotations used in the above configs.

Train

You can use the following command to train a model.

python tools/train.py ${CONFIG_FILE} [optional arguments]

Example: train PoseC3D model on FineGYM dataset in a deterministic option.

python tools/train.py configs/skeleton/posec3d/slowonly_r50_8xb16-u48-240e_gym-keypoint.py \
    --seed=0 --deterministic

For training with your custom dataset, you can refer to Custom Dataset Training.

For more details, you can refer to the Training part in the Training and Test Tutorial.

Test

You can use the following command to test a model.

python tools/test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} [optional arguments]

Example: test PoseC3D model on FineGYM dataset.

python tools/test.py configs/skeleton/posec3d/slowonly_r50_8xb16-u48-240e_gym-keypoint.py \
    checkpoints/SOME_CHECKPOINT.pth

For more details, you can refer to the Test part in the Training and Test Tutorial.

Citation

@misc{duan2021revisiting,
      title={Revisiting Skeleton-based Action Recognition},
      author={Haodong Duan and Yue Zhao and Kai Chen and Dian Shao and Dahua Lin and Bo Dai},
      year={2021},
      eprint={2104.13586},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}