À propos
« Learning Delicate Local Representations for Multi-Person Pose Estimation » (Spotlight d’ECCV 2020), lauréat du COCO 2019 Human Keypoint Detection Challenge et du COCO 2019 Best Paper Award
Apprentissage et éducationProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalLearning Delicate Local Representations for Multi-Person Pose Estimation
ECCV 2020 Spotlight
News
- 2026.11.20 · We released RSN + RTMPose-X with 79.13 AP on COCO val2017.
- 2026.11.20 · Our online demo is live. Give it a try 🤗 Online Demo
- 2026.11.20 · Fixed MPII PCKh reporting with NumPy 2.
- 2026.11.17 · Updated PyTorch and CUDA dependencies and fixed distributed training, checkpoint resumption, and evaluation.
- 2020.09 · RSN joined the MMPose model zoo.
- 2020.07 · RSN was accepted as an ECCV 2020 Spotlight.
- 2019.09 · RSN won first place and the Best Paper Award in the COCO 2019 Keypoint Challenge.
1. Create Environment
Use one Python 3.11 environment with CUDA 12.6 PyTorch for training, evaluation, inference, and the local demo. Run the commands from the repository root.
git clone https://github.com/caiyuanhao1998/RSN.git
cd RSN
conda create -n rsn python=3.11 pip -y
conda activate rsn
pip install -r requirements.txt
export RSN_HOME="$PWD"
export PYTHONPATH="$RSN_HOME${PYTHONPATH:+:$PYTHONPATH}"
2. Prepare Dataset
Download the images for your experiment from COCO and MPII. Get the original RSN annotations and detections from Google Drive or Baidu Drive (code fc51).
| Experiment | Images | Annotations and detections |
|---|---|---|
| Original COCO models | dataset/COCO/images/{train2014,val2014}/ |
dataset/COCO/gt_json/train_val_minus_minival_2014.json, dataset/COCO/gt_json/minival_2014.json, dataset/COCO/det_json/minival_2014_det.json |
| RSN-18 on MPII | dataset/MPII/images/ |
dataset/MPII/gt_json/{train.json,valid.json,valid.mat} and dataset/MPII/det_json/test.json |
| RSN + RTMPose-X | dataset/COCO/images/{train2017,val2017}/ and dataset/MPII/images/ |
dataset/COCO/annotations_trainval2017.zip, dataset/COCO/det_json/COCO_val2017_detections_AP_H_56_person.json and dataset/MPII/gt_json/train.json |
The RTMPose-X variant can reuse the COCO 2014 images by matching COCO image IDs. Keep the official 2017 annotations ZIP intact for training. The H56 detections are available from the MMPose dataset guide.
3. Testing
Evaluation
For the original experiments, set -i to the iteration in your model_logs/<user>/<experiment>/iter-<iteration>.pth checkpoint. Use the GPU count available on your machine.
torchrun --standalone --nproc-per-node=8 Res18.coco/test.py -i 96000
torchrun --standalone --nproc-per-node=8 RSN18.coco/test.py -i 96000
torchrun --standalone --nproc-per-node=8 4XRSN18.coco/test.py -i 96000
torchrun --standalone --nproc-per-node=8 RSN18.mpii/test.py -i 28800
For the released RSN + RTMPose-X weights, prepare the COCO index once and run COCO val2017 evaluation. You can also set eval_cache to the data directory from a training run and skip the cache preparation.
eval_cache=model_logs/rsn-eval-data
mkdir -p "$eval_cache"
unzip -oq dataset/COCO/annotations_trainval2017.zip \
'annotations/person_keypoints_*2017.json' -d "$eval_cache"
cp dataset/COCO/det_json/COCO_val2017_detections_AP_H_56_person.json "$eval_cache/"
RSN_RTMPOSE_DATA="$eval_cache" PYTHONPATH="$PWD/RTMPose-X:${PYTHONPATH:-$PWD}" \
python -c 'from data_pipeline import prepare_records; prepare_records("dataset/COCO/images")'
mkdir -p checkpoints
curl -fL https://huggingface.co/CaiYuanhao/RSN/resolve/main/rsn-rtmpose-x.pth -o checkpoints/rsn-rtmpose-x.pth
RSN_RTMPOSE_DATA="$eval_cache" torchrun --standalone --nproc-per-node=8 \
RTMPose-X/evaluate.py --checkpoint checkpoints/rsn-rtmpose-x.pth \
--output model_logs/rtmpose-x-validation --batch-size 32 --workers 4 --amp fp16
Evaluation uses H56 person detections and flip inference and writes metrics.json under --output. See the COCO val2017 model comparison and the COCO and MPII paper benchmarks.
Inference on images and videos
The pipeline downloads the released pose checkpoint and YOLOX-S detector on first use.
python RTMPose-X/pipeline.py input.jpg poses.jpg --device cuda
python RTMPose-X/pipeline.py input.mp4 poses.mp4 --device cuda
Launch the local browser demo with RSN_DEVICE=cuda python RTMPose-X/app.py.
4. Training
Original RSN experiments
Choose one command. The examples use eight GPUs. Checkpoints are saved to model_logs/<user>/<experiment>/. Resume with -c <checkpoint>.
torchrun --standalone --nproc-per-node=8 Res18.coco/train.py
torchrun --standalone --nproc-per-node=8 RSN18.coco/train.py
torchrun --standalone --nproc-per-node=8 4XRSN18.coco/train.py
torchrun --standalone --nproc-per-node=8 RSN18.mpii/train.py
RSN + RTMPose-X
Download the official RTMPose-X Body7 initialization checkpoint and run the trainer on COCO and MPII. Repeat the command with the same output directory to resume.
mkdir -p checkpoints
curl -fL https://download.openmmlab.com/mmpose/v1/projects/rtmposev1/rtmpose-x_simcc-body7_pt-body7_700e-384x288-71d7b7e9_20230629.pth \
-o checkpoints/rtmpose-x-body7.pth
python RTMPose-X/train.py --checkpoint checkpoints/rtmpose-x-body7.pth \
--coco-archive dataset/COCO/annotations_trainval2017.zip \
--coco-images dataset/COCO/images \
--detections dataset/COCO/det_json/COCO_val2017_detections_AP_H_56_person.json \
--mpii-annotations dataset/MPII/gt_json/train.json --mpii-images dataset/MPII/images \
--data-dir model_logs/rtmpose-x-data --output model_logs/RTMPose-X --gpus 8
5. Citation
If you use RSN in your research, please cite our work.
@inproceedings{cai2020learning,
title = {Learning Delicate Local Representations for Multi-Person Pose Estimation},
author = {Yuanhao Cai and Zhicheng Wang and Zhengxiong Luo and Binyi Yin and
Angang Du and Haoqian Wang and Xinyu Zhou and Erjin Zhou and
Xiangyu Zhang and Jian Sun},
booktitle = {ECCV},
year = {2020}
}
@inproceedings{cai2019res,
title = {Res-Steps-Net for Multi-Person Pose Estimation},
author = {Cai, Yuanhao and Wang, Zhicheng and Yin, Binyi and Yin, Ruihao and
Du, Angang and Luo, Zhengxiong and Li, Zeming and Zhou, Xinyu and
Yu, Gang and Zhou, Erjin and others},
booktitle = {Joint COCO and Mapillary Workshop at ICCV},
year = {2019}
}
Explorer des projets similaires
Chargement…

