NVIDIA
NVIDIA
Pose Classification
Model
NVIDIA
NVIDIA
Pose Classification

Pose classification network to classify poses of people from their skeletons.

PoseClassificationNet Model Card

Description:

PoseClassificationNet recognizes the pose of people:

  • getting up
  • jumping
  • sitting
  • sitting down
  • standing
  • walking

This model is ready for commercial use.

References:

Citations

  • Yan, S., Xiong, Y., Lin, D.: Spatial Temporal Graph Convolutional Networks for Skeleton-Based Action Recognition. In: AAAI (2018)
  • Kay, W., Carreira, J., Simonyan, K., Zhang, B., Hillier, C., Vijayanarasimhan, S., Viola, F., Green, T., Back, T., Natsev, P., Suleyman, M., Zisserman, A.: The Kinetics Human Action Video Dataset. In: arXiv (2017)

Using TAO Pre-trained Models

Model Architecture:

Architecture Type: Graph Convolutional Network (GCN)
Network Architecture: Spatial-Temporal Graph Convolutional Network (ST-GCN)

Input:

Input Type(s): Video
Input Format(s): MP4
Input Parameters: 4D
Other Properties Related to Input:
The input data for training or inference are formatted as a NumPy array in five dimensions (N, C, T, V, M):

  1. N indicates the number of sequences.
  2. C stands for the number of input channels, which is set as 3 in this example.
  3. T represents the maximum sequence length in frames that is 300 (10 seconds for 30 FPS) in our case.
  4. V defines the number of joint points, set as 34 for the NVIDIA format.
  5. M means the number of persons. Our pre-trained model assumes a single object but it can also support multiple people.

Output:

Output Type(s): Label(s)
Output Format: Label: Text String
Other Properties Related to Output: Category Label(s): sitting_down, getting_up, sitting, standing, walking and jumping

Software Integration:

Runtime Engine(s):

  • TAO - 5.2
  • DeepStream 6.1 or later

Supported Hardware Architecture(s):

  • Ampere
  • Jetson
  • Hopper
  • Lovelace
  • Pascal
  • Turing
  • Volta

Supported Operating System(s):

  • Linux
  • Linux 4 Tegra

Model Version(s):

  • trainable_v1.1 - Pre-trained model for 3D body pose in the NVIDIA format.
  • deployable_v1.1 - Model for 3D body pose in the NVIDIA format deployable to DeepStream or TensorRT.

Training & Evaluation:

Training Dataset:

Data Collection Method by dataset:

  • Automatic/Sensors

Labeling Method by dataset:

  • Automated

Properties:
Proprietary, internal datasets with 6 annotated action classes, i.e., sitting_down, getting_up, sitting, standing, walking and jumping. The skeletons are based on the 34-keypoint NVIDIA format generated by the deepstream-bodypose-3d app. The dataset statistics are as follows:

classesno. train sequencesno. val sequencesno. test sequences
sitting_down19235394
getting_up188456109
sitting90955101
standing13915499
walking18944599
jumping14405590

Data Format

The output of model inference is an array of N elements that gives the predicted action class for each sequence.

The labels used for training or evaluation are stored as a pickle file that consists of a list of two lists, including N elements each, e.g., [["xl6vmD0XBS0.json", "OkLnSMGCWSw.json", "IBopZFDKfYk.json", "HpoFylcrYT4.json", "mlAtn_zi0bY.json", ...], [235, 388, 326, 306, 105, ...]]. The first list contains N strings of sample names. The second one lists the labeled action class ID of each sequence.

The graph to model skeletons is defined by two configuration paratmers:

  1. graph_layout (string): Must be one the following candidates:

    • nvidia consists of 34 joints. For more information, please refer to here.

    • openpose consists of 18 joints. For more information, please refer to here.

    • human3.6m consists of 17 joints. For more information, please refer to here.

    • ntu-rgb+d consists of 25 joints. For more information, please refer to here.

    • ntu_edge consists of 24 joints. For more information, please refer to here.

    • coco consists of 17 joints. For more information, please refer to here.

  2. graph_strategy (string): Must be one of the following candidates (For more information, please refer to the section "Partition Strategies" in the paper):

    • uniform: Uniform Labeling

    • distance: Distance Partitioning

    • spatial: Spatial Configuration

Evaluation Dataset:

Data Collection Method by dataset:

  • Automatic/Sensors

Labeling Method by dataset:

  • Automated

Properties: ~100 random sequences per class from the training dataset described above.

Methodology and KPI

The key performance indicator is the accuracy of action recognition, i.e., the ratio of correctly predicted samples to the total labeled samples.

NameScore
Class accuracy: sitting_down98.94
Class accuracy: getting_up99.08
Class accuracy: sitting87.13
Class accuracy: standing80.81
Class accuracy: walking92.93
Class accuracy: jumping85.56
Total accuracy90.88
Average class accuracy90.74

Inference:

Engine: Tensor(RT)
Test Hardware:

  • Jetson AGX Xavier
  • Xavier NX
  • Orin
  • Orin NX
  • NVIDIA T4
  • Ampere GPU
  • A2
  • A30
  • L4
  • T4
  • DGX H100
  • DGX A100
  • DGX H100
  • L40
  • JAO 64GB
  • Orin NX16GB
  • Orin Nano 8GB

The inference performance runs with trtexec on NVIDIA Ampere and Jetson GPUs. The end-to-end performance with streaming video data might slightly vary depending on use cases of applications.

ModelGraph LayoutDevicePrecisionBatch SizeLatency (ms)Sequences per Second
ST-GCNNVIDIA (34 keypoints)A10TF3212.89346.45
ST-GCNNVIDIA (34 keypoints)A10TF3249.86101.38
ST-GCNNVIDIA (34 keypoints)A10TF321633.8629.53
ST-GCNNVIDIA (34 keypoints)A10Mixed11.59628.45
ST-GCNNVIDIA (34 keypoints)A10Mixed45.57179.67
ST-GCNNVIDIA (34 keypoints)A10Mixed1620.4748.84
ST-GCNNVIDIA (34 keypoints)A30TF3212.14336.12
ST-GCNNVIDIA (34 keypoints)A30TF3246.87145.59
ST-GCNNVIDIA (34 keypoints)A30TF321623.9241.80
ST-GCNNVIDIA (34 keypoints)A30Mixed11.28780.07
ST-GCNNVIDIA (34 keypoints)A30Mixed44.10244.08
ST-GCNNVIDIA (34 keypoints)A30Mixed1614.8567.33
ST-GCNNVIDIA (34 keypoints)Jetson AGX OrinBest14.58218.14
ST-GCNNVIDIA (34 keypoints)Jetson AGX OrinBest416.2861.41
ST-GCNNVIDIA (34 keypoints)Jetson AGX OrinBest1661.6116.23

How to use this model

This model needs to be used with NVIDIA Hardware and Software. For Hardware, the model can run on any NVIDIA GPU including NVIDIA Jetson devices. This model can only be used with Train Adapt Optimize (TAO) Toolkit, DeepStream SDK or TensorRT.

Primary use case intended for this model is to recognize the action from the sequence of skeletons. The maximum sequence length in frames is 300.

A pre-trained model is provided:

  • st-gcn_3dbp_nvidia

It is intended for training and fine-tune using Train Adapt Optimize (TAO) Toolkit and the users' dataset of skeleton-based action recognition. High fidelity models can be trained to the new use cases. The Jupyter notebook available as a part of TAO container can be used to re-train.

The model is also intended for easy deployment to the edge using DeepStream SDK or TensorRT. DeepStream provides facility to create efficient video analytic pipelines to capture, decode and pre-process the data before running inference.

The model is encrypted and can be decrypted with the following key:

  • Model load key: nvidia_tao

Please make sure to use this as the key for all TAO commands that require a model load key.

Instructions to use the model with TAO toolkit

In order to use the model as pre-trained weights for transfer learning, please use the snippet below as a template for the model component of the experiment spec file to train a PoseClassificationNet. For more information on experiment spec file, please refer to the Train Adapt Optimize (TAO) Toolkit User Guide.

model:
  model_type: ST-GCN
  pretrained_model_path: "/path/to/st-gcn_3dbp_nvidia.tlt"
  input_channels: 3
  dropout: 0.5
  graph_layout: "nvidia"
  graph_strategy: "spatial"
  edge_importance_weighting: True

Instructions to deploy the model with Triton Inference Server

To create the entire end-to-end video analytic application, deploy this model with Triton Inference Server. NVIDIA Triton Inference Server is an open-source inference serving software that helps standardize model deployment and execution and delivers fast and scalable AI in production. Triton supports direct integration of this model into the server and inference from a client.

To deploy this model with Triton Inference Server and end-to-end inference from video, please refer to the TAO Triton apps.

Technical blogs

Suggested reading

Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse. For more detailed information on ethical considerations for this model, please see the Model Card++ Promise and the Explainability, Bias, Safety & Security, and Privacy Subcards.

Publisher
NVIDIA
NVIDIA
Latest Versiondeployable_onnx_v1.0
UpdatedNovember 27, 2024 UTC
Compressed Size12.14 MB

NVIDIA uses cookies to improve your experience on our web site. We and our third-party partners also use cookies and other tools to collect and record information you provide as well as information about your interactions with our websites for performance improvement, analytics, and to assist in marketing efforts. By clicking "Accept All", you consent to our use of cookies and other tools as described in our Cookie Policy. You can manage your cookie settings by clicking on "Manage Settings." By continuing to use this site or by clicking one of the buttons below, you agree to our Terms of Service (which contains important waivers). Please see our Privacy Policy for more information on our privacy practices.