Giter Site home page Giter Site logo

myatthukyaw / trt_pose_inference Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 367.69 MB

This repo contain inference code for NVIDIA's trt_pose pose estimation.

License: MIT License

CMake 0.28% Python 48.00% Shell 0.14% Jupyter Notebook 16.61% C++ 34.98%
pose-estimation inference demo human-pose-estimation

trt_pose_inference's Introduction

Nvidia's trt_pose Inference

This repo is for beginners who want to test Nvidia's trt_pose pose estimation.

Image

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 trt_pose and torch2trt

Please follow instructions on official Nvidia's trt_pose and torch2trt - An easy to use PyTorch to TensorRT converter.

Move the pretrained models into the tasks/human_pose/pretrained directory.

Step 2 - Convert the model to tensorrt model

If you have problem installing torch2trt, you can skip this step.

cd trt_pose/tasks/human_pose
python convert_trt.py --model pretrained/densenet121_baseline_att_256x256_B_epoch_160.pth --json human_pose.json --size 256

You can find the size of input image in the name of your model file.

Step 3 - Run Inference code

There are two modes to test : input a video and test with your webcam.

If you passed step-2, run this:

python inference.py --trt_model pretrained/densenet121_baseline_att_256x256_B_epoch_160_trt.pth --json human_pose.json --size 256 --video_input test.mkv

If you skipped step-2, run this:

python inference.py --trt_model pretrained/densenet121_baseline_att_256x256_B_epoch_160.pth --json human_pose.json --size 256 --video_input test.mkv

Above Image is tested with video from https://www.youtube.com/watch?v=YzcawvDGe4Y.

trt_pose_inference's People

Contributors

myatthukyaw avatar

Stargazers

 avatar Win Phyoe Thu avatar moe htet (Dazai) avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.