Giter Site home page Giter Site logo

cjm-sfw / querypose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buptxyb666/querypose

0.0 0.0 0.0 17.44 MB

This is an official implementation of our NeurIPS 22 paper“QueryPose: Sparse Multi-Person Pose Regression via Spatial-Aware Part-Level Query”

License: MIT License

Shell 0.47% C++ 4.23% Python 90.16% Cuda 5.11% CMake 0.03%

querypose's Introduction

QueryPose: Sparse Multi-Person Pose Regression via Spatial-Aware Part-Level Query

License: MIT

👏👏👏👏👏👏👏👏👏👏👏 QueryPose is a sparse end-to-end multi-person pose regression framework:

QueryPose: Sparse Multi-Person Pose Regression via Spatial-Aware Part-Level Query,
Yabo Xiao, Kai Su, Xiaojuan Wang, Dongdong Yu, Lei Jin, Mingshu He, Zehuan Yuan;
Published on NeurIPS 2022

Highlights

  • Simple: QueryPose is sparse end-to-end multi-person pose regression framework, which can directly predict multi-person keypoint sequences from the input image. Our method is built upon Sparse RCNN without transformer encoder.

  • Generalizability: QueryPose is able to achieve the competitive performance on diverise scenes.

  • Fast convergence: Achieving 60+ AP with only several training epochs. We will release the 1x model with competitive performance.

Models

The pretrain model of HRNet-series can be downloaded from HRNet-pretrain. The swin-series can be downloaded from Swin Transformer

The results on MS COCO mini-val with 100 queries; We provide the light version models (without dynamic head in keypoint decoder)

Backbone keypoint AP keypoint AP * Times(ms) download
HRNet32_100pro_3x 69.8 72.3 97 model
HRNet48_100pro_3x 71.0 73.4 101 model

Notes

  • We are restructuring our code for accelerating training and inference (reducing the GPU memory significantly as well). Working in Progress 👷‍♂️👷‍♂️👷‍♂️!!! The more effecient implementation will coming soon.
  • The time is calculated on Tesla A100, Other GPU cards are not fully tested.
  • For QueryPose, we leverage the heatmap-pretrain model for HRNet-series backbone instead of using online auxiliary heatmap learning in other regression-based methods. We observe that the online auxiliary heatmap learning is useless for our method.

Installation

The codebases are built on top of Detectron2 and Sparse RCNN. If you have any environment or compilation issues, please refer to them.

  1. Install and compile
git clone [email protected]:buptxyb666/QueryPose.git
cd QueryPose
python setup.py build develop

pip install timm
  1. Link coco dataset path to QueryPose/datasets/coco
mkdir -p datasets/coco
ln -s /path_to_coco_dataset/annotations datasets/coco/annotations
ln -s /path_to_coco_dataset/train2017 datasets/coco/train2017
ln -s /path_to_coco_dataset/val2017 datasets/coco/val2017
  1. Train QueryPose
python projects/querypose/train_net.py --num-gpus 8 \
    --config-file projects/querypose/configs/querypose.hrnet32.100pro.3x.yaml
  1. Evaluate QueryPose
python projects/querypose/train_net.py --num-gpus 8 \
    --config-file projects/querypose/configs/querypose.hrnet32.100pro.3x.yaml \
    --eval-only MODEL.WEIGHTS path/to/model.pth

Citing

If you find this project useful for your research, please use the following BibTeX entry:

@inproceedings{xiaoquerypose,
  title={QueryPose: Sparse Multi-Person Pose Regression via Spatial-Aware Part-Level Query},
  author={Xiao, Yabo and Su, Kai and Wang, Xiaojuan and Yu, Dongdong and Jin, Lei and He, Mingshu and Yuan, Zehuan},
  booktitle={Advances in Neural Information Processing Systems}
}

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.