Volver al ranking

NVIDIA-AI-IOT/trt_pose

Python

Real-time pose estimation accelerated with NVIDIA TensorRT

human-pose-estimationhuman-posetensorrtpytorchtorch2trtjetsonjetson-nanojetson-xavierreal-timelive-demopretrained-models
Crecimiento de estrellas
Estrellas
1.1k
Forks
297
Crecimiento semanal
Issues
137
5001k
oct 2019ene 2022abr 2024jul 2026
ArtefactosPyPIpip install trt_pose
README

trt_pose

Want to detect hand poses? Check out the new trt_pose_hand project for real-time hand pose and gesture recognition!

trt_pose is aimed at enabling real-time pose estimation on NVIDIA Jetson. You may find it useful for other NVIDIA platforms as well. Currently the project includes

  • Pre-trained models for human pose estimation capable of running in real time on Jetson Nano. This makes it easy to detect features like left_eye, left_elbow, right_ankle, etc.

  • Training scripts to train on any keypoint task data in MSCOCO format. This means you can experiment with training trt_pose for keypoint detection tasks other than human pose.

To get started, follow the instructions below. If you run into any issues please let us know.

Getting Started

To get started with trt_pose, follow these steps.

Step 1 - Install Dependencies

  1. Install PyTorch and Torchvision. To do this on NVIDIA Jetson, we recommend following this guide

  2. Install torch2trt

    git clone https://github.com/NVIDIA-AI-IOT/torch2trt
    cd torch2trt
    sudo python3 setup.py install --plugins
    
  3. Install other miscellaneous packages

    sudo pip3 install tqdm cython pycocotools
    sudo apt-get install python3-matplotlib
    

Step 2 - Install trt_pose

git clone https://github.com/NVIDIA-AI-IOT/trt_pose
cd trt_pose
sudo python3 setup.py install

Step 3 - Run the example notebook

We provide a couple of human pose estimation models pre-trained on the MSCOCO dataset. The throughput in FPS is shown for each platform

Model Jetson Nano Jetson Xavier Weights
resnet18_baseline_att_224x224_A 22 251 download (81MB)
densenet121_baseline_att_256x256_B 12 101 download (84MB)

To run the live Jupyter Notebook demo on real-time camera input, follow these steps

  1. Download the model weights using the link in the above table.

  2. Place the downloaded weights in the tasks/human_pose directory

  3. Open and follow the live_demo.ipynb notebook

    You may need to modify the notebook, depending on which model you use

See also

  • trt_pose_hand - Real-time hand pose estimation based on trt_pose

  • torch2trt - An easy to use PyTorch to TensorRT converter

  • JetBot - An educational AI robot based on NVIDIA Jetson Nano

  • JetRacer - An educational AI racecar using NVIDIA Jetson Nano

  • JetCam - An easy to use Python camera interface for NVIDIA Jetson

References

The trt_pose model architectures listed above are inspired by the following works, but are not a direct replica. Please review the open-source code and configuration files in this repository for architecture details. If you have any questions feel free to reach out.

  • Cao, Zhe, et al. "Realtime multi-person 2d pose estimation using part affinity fields." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2017.

  • Xiao, Bin, Haiping Wu, and Yichen Wei. "Simple baselines for human pose estimation and tracking." Proceedings of the European Conference on Computer Vision (ECCV). 2018.

Repositorios relacionados
CMU-Perceptual-Computing-Lab/openpose

OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation

C++Otheropenposecomputer-vision
cmu-perceptual-computing-lab.github.io/openpose
34.3k8k
PaddlePaddle/PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.

PythonPyPIApache License 2.0object-detectioninstance-segmentation
14.3k3k
MVIG-SJTU/AlphaPose

Real-Time and Accurate Full-Body Multi-Person Pose Estimation&Tracking System

PythonPyPIOtherpose-estimationposetracking
mvig.org/research/alphapose.html
8.6k2k
ZheC/Realtime_Multi-Person_Pose_Estimation

Code repo for realtime multi-person pose estimation in CVPR'17 (Oral)

Jupyter NotebookOtherhuman-pose-estimationrealtime
5.1k1.4k
leoxiaobin/deep-high-resolution-net.pytorch

The project is an official implementation of our CVPR2019 paper "Deep High-Resolution Representation Learning for Human Pose Estimation"

CudaMIT Licensehuman-pose-estimationdeep-learning
jingdongwang2017.github.io/Projects/HRNet/PoseEstimation.html
4.5k922
mkocabas/VIBE

Official implementation of CVPR2020 paper "VIBE: Video Inference for Human Body Pose and Shape Estimation"

PythonPyPIOthervideo-pose-estimation3d-pose-estimation
arxiv.org/abs/1912.05656
3.2k577
osmr/imgclsmob

Sandbox for training deep learning networks

PythonPyPIMIT Licensemachine-learningdeep-learning
3k552
microsoft/human-pose-estimation.pytorch

The project is an official implement of our ECCV2018 paper "Simple Baselines for Human Pose Estimation and Tracking(https://arxiv.org/abs/1804.06208)"

PythonPyPIMIT Licensehuman-pose-estimationdeep-learning
3k597
cbsudux/awesome-human-pose-estimation

A collection of awesome resources in Human Pose estimation.

human-pose-estimationdeep-learning
2.5k404
Daniil-Osokin/lightweight-human-pose-estimation.pytorch

Fast and accurate human pose estimation in PyTorch. Contains implementation of "Real-time 2D Multi-Person Pose Estimation on CPU: Lightweight OpenPose" paper.

PythonPyPIApache License 2.0human-pose-estimationdeep-learning
2.2k495
YuliangXiu/ICON

[CVPR'22] ICON: Implicit Clothed humans Obtained from Normals

PythonPyPIOtherimplicit-functionsvirtual-humans
icon.is.tue.mpg.de
1.7k220
wangzheallen/awesome-human-pose-estimation

Human Pose Estimation Related Publication

3d-human-pose2d-human-pose
1.4k208