GithubHelp home page GithubHelp logo

wangxihao / htnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vefalun/htnet

0.0 0.0 0.0 5.45 MB

HTFormer: Human Topology Aware Transformer for 3D Human Pose Estimation

License: MIT License

Python 100.00%

htnet's Introduction

HTNet: Human Topology Aware Network for 3D Human Pose Estimation

HTNet: Human Topology Aware Network for 3D Human Pose Estimation,
Jialun Cai, Hong Liu, Runwei Ding , Wenhao Li, Jianbing Wu, Miaoju Ban
In IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP), 2023

Results on Human3.6M

Protocol 1 (mean per-joint position error) when 2D keypoints detected by CPN and the ground truth of 2D poses.

Method Train Epochs MPJPE (CPN) MPJPE (GT)
GraFormer 50 51.8 mm 35.2 mm
MGCN (w/refine) 50 49.4 mm 33.5 mm
HTNet 15 48.9 mm 34.0 mm
HTNet (w/refine) 15 47.6 mm 31.9 mm

Get started directly

Special thanks to MHFormer, we have completed a beginner's guide for image-based pose estimation. Only three steps that poses can be generated for your own images:(1) Download pretrained models (Yolov3 and HRNet) here and put them in the './demo/lib/checkpoint'; (2)download pretrained model and put it in the './ckpt' directory; (3) Put your own images in the './demo/figure', and run:

python demo/vis.py

Then you can obtain the visualized pose in the "./demo/output", like:

Quick start

To get started as quickly as possible, follow the instructions in this section. This should allow you train a model from scratch, test our pretrained models.

Dependencies

Make sure you have the following dependencies installed before proceeding:

  • Python 3.7+
  • PyTorch >= 1.10.0 To setup the environment:
pip install -r requirement.txt

Dataset setup

Please download the dataset here and refer to VideoPose3D to set up the Human3.6M dataset ('./dataset' directory).

${POSE_ROOT}/
|-- dataset
|   |-- data_3d_h36m.npz
|   |-- data_2d_h36m_gt.npz
|   |-- data_2d_h36m_cpn_ft_h36m_dbb.npz

Evaluating our pre-trained models

The pretrained model is here, please download it and put it in the './ckpt' directory. To achieve the performance in the paper, run:

python main.py --reload --previous_dir "ckpt/cpn" 

Training your models

If you want to train your own model, run:

python main.py --train -n "your_model_name"

Acknowledgement

Our code is extended from the following repositories. We thank the authors for releasing the codes.

Licence

This project is licensed under the terms of the MIT license.

htnet's People

Contributors

vefalun 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.