Skip to content
ModelsThatRun

DETRPose

A real-time end-to-end pose transformer built on D-FINE: COCO's 17 keypoints for everyone in the photo, no NMS. Five sizes, Apache-2.0.

Size

Commercial use OK for size n: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 28.0 ms median, 578 MiB VRAM peak. PyTorch weights, 16 MB.

License

Commercial use OK

Code
Apache-2.0checked 21 Nov 2026
Weights
Apache-2.0all sizes, checked 21 Nov 2026

On our RTX 4090, measured

28.0ms median

p90 28.7 ms, fp32, batch 1, 640x640

VRAM peak
578 MiB
Status
Runs as is

Phases of one call

Pre-processing
10.3 ms
Network
18.9 ms
Post-processing
0.4 ms

Split by our adapter over 20 calls, with a synchronize after each phase. The synchronizes stop the CPU and GPU from overlapping, so the phases don't add up to the median; the whole call took 29.5 ms there.

Environment, 22 Nov 2026

NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.11.11, SebastianJanampa/DETRPose@d56a05012e98e83d1594e53d1826b9cf42a5db8a. Baseline 1065 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Reported2.8 msTesla V100, fp16, batch 1, TensorRT 8.6.3Source: README, notes under the results tables

Accuracy

Not yet scored

Reported57.2 COCO keypoint AP on COCO val2017Source: README, COCO val2017 table

Weights

PyTorch

Size
16 MB
sha256
802014f3929b67d0ea7de068e66f11fc836310ecaf814dd3845b703d16256fac
Download n weights

Same photos and one score threshold for every model of this task. Failures are marked.

Use it when

You want multi-person pose under Apache-2.0 without NMS, in five sizes. On a CPU its ONNX Runtime path ran faster than PyTorch (n 72 against 104 ms a call).

Avoid it when

You need the fastest pose model on the GPU: in PyTorch at fp32 even n took 28 ms a call, against 11 to 15 ms for the n sizes of the Ultralytics pose models here. Its accuracy is the README's for now, since we don't score pose yet.

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
n28.0 ms640x640578 MiBNot yet scored57.2 COCO keypoint AP paper16 MBAs isCommercial OK
s29.3 ms640x640648 MiBNot yet scored67 COCO keypoint AP paper45 MBAs isCommercial OK
m34.7 ms640x640750 MiBNot yet scored69.4 COCO keypoint AP paper81 MBAs isCommercial OK
l40.8 ms640x640792 MiBNot yet scored72.5 COCO keypoint AP paper128 MBAs isCommercial OK
x46.2 ms640x640964 MiBNot yet scored73.3 COCO keypoint AP paper285 MBAs isCommercial OK

Estimated on other GPUs

Estimate, not measured. Worked out from our RTX 4090 run and NVIDIA's spec sheets. Each kind of GPU work is scaled by that GPU's peak for it: tensor cores at the precision the kernels used, CUDA cores, or memory bandwidth. The CPU's part of each call is kept at what it took on our Intel Core i7-10700K. How we estimate

Where a call's time goes on our RTX 4090: CPU and kernel launches 88%, memory-bound 6%, CUDA cores, FP32 3%, host–device copies 2%.

GeForce (13)
GPUFitsLatency
GeForce RTX 5090Blackwell, 32 GB GDDR7Yes≈ 27–28 ms
GeForce RTX 5080Blackwell, 16 GB GDDR7Yes≈ 28–29 ms
GeForce RTX 5070 TiBlackwell, 16 GB GDDR7Yes≈ 28–29 ms
GeForce RTX 5070Blackwell, 12 GB GDDR7Yes≈ 28–31 ms
GeForce RTX 5060 Ti 16GBBlackwell, 16 GB GDDR7Yes≈ 28–33 ms
GeForce RTX 5060Blackwell, 8 GB GDDR7Yes≈ 28–34 ms
GeForce RTX 4080Ada Lovelace, 16 GB GDDR6XYes≈ 28–29 ms
GeForce RTX 4070 TiAda Lovelace, 12 GB GDDR6XYes≈ 28–31 ms
GeForce RTX 4070Ada Lovelace, 12 GB GDDR6XYes≈ 28–32 ms
GeForce RTX 3090Ampere, 24 GB GDDR6XYes≈ 28–30 ms
GeForce RTX 3080Ampere, 10 GB GDDR6XYes≈ 28–30 ms
GeForce RTX 3070 TiAmpere, 8 GB GDDR6XYes≈ 28–32 ms
GeForce RTX 3070Ampere, 8 GB GDDR6Yes≈ 28–33 ms
Workstation (4)
GPUFitsLatency
RTX PRO 6000 Blackwell Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 27–28 ms
RTX PRO 6000 Blackwell Max-Q Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 27–28 ms
RTX 6000 Ada GenerationAda Lovelace, 48 GB GDDR6Yes≈ 28 ms
RTX A6000Ampere, 48 GB GDDR6Yes≈ 28–29 ms
Data center (6)
GPUFitsLatency
B200 (HGX, one GPU)Blackwell, 180 GB HBM3EYes≈ 26–28 ms
H200 SXMHopper, 141 GB HBM3eYes≈ 27–28 ms
H100 SXMHopper, 80 GB HBM3Yes≈ 27–28 ms
A100 SXM 80GBAmpere, 80 GB HBM2eYes≈ 28–30 ms
L40SAda Lovelace, 48 GB GDDR6Yes≈ 28 ms
L4Ada Lovelace, 24 GB GDDR6Yes≈ 28–33 ms

CPU only

Measured by us with no GPU on an Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz, 8 cores, 94.2 GiB of memory: the same official code with the GPU hidden, in fp32 on 8 threads. Before it was timed, its output on the timing input was checked against the GPU's. These numbers say what to expect without a GPU. They aren't compared with any GPU's, here or in the charts. How we measure on a CPU

SizeRuntimeLatency on the CPURAM peak
nPyTorch2.14.1 · fp32 · 8 threads104 ms640x640957 MiB
nONNX Runtime1.31.1 · fp32 · 8 threads72.4 ms640x640892 MiB
sPyTorch2.14.1 · fp32 · 8 threads199 ms640x6401.0 GiB
sONNX Runtime1.31.1 · fp32 · 8 threads145 ms640x6401.0 GiB
mPyTorch2.14.1 · fp32 · 8 threads315 ms640x6401.1 GiB
mONNX Runtime1.31.1 · fp32 · 8 threads229 ms640x6401.1 GiB
lPyTorch2.14.1 · fp32 · 8 threads436 ms640x6401.2 GiB
lONNX Runtime1.31.1 · fp32 · 8 threads297 ms640x6401.2 GiB
xPyTorch2.14.1 · fp32 · 8 threads899 ms640x6401.5 GiB
xONNX Runtime1.31.1 · fp32 · 8 threads775 ms640x6401.5 GiB

ONNX Runtime rows run the authors' own ONNX export with their own ONNX Runtime code, whose pre-processing may differ from the PyTorch code's, so their input can differ too.

From the authors

In their words, with their numbers. Ours are in the cards at the top of this page.

Paper

DETRPose: Real-Time End-to-End Multi-Person Pose Estimation via Modified Transformer Decoder and Novel Denoising Keypoints

Sebastian Janampa, Marios Pattichis

arXiv 2506.13027, 16 Jun 2025

Abstract

Multi-person pose estimation (MPPE), which involves detecting body joint positions (keypoints) for every person in an image, is a fundamental task in computer vision. Despite recent advances, no transformer-based model currently achieves real-time performance. This work addresses the latency challenge by introducing DETRPose, the first family of real-time, end-to-end transformer models for multi-person 2D pose estimation. DETRPose significantly enhances the GroupPose decoder, enabling real-time inference. For training, a novel denoising keypoint technique is proposed to accelerate convergence. The varifocal loss is also extended for keypoints, termed Keypoint Similarity VariFocal loss, to improve query quality. Extensive evaluation demonstrates that DETRPose models achieve accuracy comparable to or exceeding that of leading alternatives while requiring five to ten times fewer training epochs. DETRPose-S matches the accuracy of YOLOv8-Pose-X and YOLO11-Pose-X on the COCO dataset (67.0 vs 67.3 and 67.2 in AP) with 81% fewer parameters (11.5M vs 69.4M and 58.8M) and 52% faster inference speed (2.39ms vs 5.23ms and 4.93ms). On the CrowdPose dataset, DETRPose-X has $13.1\times$ fewer FLOPs (232.3G vs 3048.1G) and only $2%$ fewer precision (75.1 vs 76.6 in AP) than ED-Pose-SwinL-5S. On the OCHuman dataset, DETRPose-S surpasses all previous models, showing the robustness of DETRPose on out-of-distribution datasets. Code is available at https://github.com/SebastianJanampa/DETRPose

README

Copied from the authors' repository at commit d56a050 on 23 Nov 2026. Numbers and license claims in it are theirs, not measured or checked by us. We removed badges, replaced images with links and adjusted headings.

DETRPose: Real-Time End-to-End Multi-Person Pose Estimation via Modified Transformer Decoder and Novel Denoising Keypoints

📄 This is the official implementation of the paper:
DETRPose: Real-Time End-to-End Multi-Person Pose Estimation via Modified Transformer Decoder and Novel Denoising Keypoints

Sebastian Janampa and Marios Pattichis

The University of New Mexico
Department of Electrical and Computer Engineering


Figure metrics

DETRPose is the first real-time end-to-end transformer model for multi-person pose estimation, achieving outstanding results on the COCO and CrowdPose datasets. In this work, we propose a new denoising technique suitable for pose estimation that uses the Object Keypoint Similarity (OKS) metric to generate positive and negative queries. Additionally, we develop a new classification head and a new classification loss that are variations of the LQE head and the varifocal loss used in D-FINE.

Video We conduct object detection using DETRPose to show its efficiency and low latency.

Video

🚀 Updates

  • ☑ [2026.07.09] Release models in HuggingFace 🤗.
  • ☑ [2026.07.09] Release a new inference_only branch.
  • ☑ [2026.07.02] Release new version of DETRPose paper.
  • ☑ [2026.06.20] DETRPose has been accepted in ECCV2026.
  • ☑ [2025.06.02] Release DETRPose code and weights.
  • ☑ [2025.06.04] Release Google Colab Notebook.
  • ☑ [2025.06.04] Release HuggingFace 🤗 Space.
  • ☑ [2025.06.17] Release paper on arxiv.

Model Zoo

COCO val2017
ModelAPAP50AP75ARAR50#ParamsLatencyGFLOPsconfigcheckpointHF 🤗 checkpoint
DETRPose-N57.281.761.464.487.94.1 M2.80 ms9.3py57.2HF
DETRPose-S67.087.672.873.592.411.5 M4.99 ms33.1py67.0HF
DETRPose-M69.489.275.475.593.720.8 M7.01 ms67.3py69.4HF
DETRPose-L72.590.679.078.795.032.8 M9.50 ms107.1py72.5HF
DETRPose-X73.390.579.479.494.973.3 M13.31 ms239.5py73.3HF
COCO test-dev2017
ModelAPAP50AP75ARAR50#ParamsLatencyGFLOPsconfigcheckpointHF 🤗 checkpoint
DETRPose-N56.783.161.164.489.34.1 M2.80 ms9.3py56.7HF
DETRPose-S66.088.372.073.293.311.5 M4.99 ms33.1py66.0HF
DETRPose-M68.490.174.875.194.420.8 M7.01 ms67.3py88.3HF
DETRPose-L71.291.278.178.195.732.8 M9.50 ms107.1py71.2HF
DETRPose-X72.291.479.378.895.773.3 M13.31 ms239.5py72.2HF
CrowdPose test
ModelAPAP50AP75APEAPMAPH#ParamsLatencyGFLOPsconfigcheckpointHF 🤗 checkpoint
DETRPose-N56.080.759.665.056.646.64.1 M2.72 ms8.8py57.2HF
DETRPose-S67.488.672.974.768.159.311.5 M4.80 ms31.3py67.0HF
DETRPose-M72.091.077.878.672.664.520.7 M6.86 ms64.9py69.4HF
DETRPose-L73.391.679.479.574.066.132.7 M9.03 ms103.5py72.5HF
DETRPose-X75.192.181.381.375.768.173.3 M13.01 ms232.3py73.3HF

Notes:

  • Latency is evaluated on a single Tesla V100 GPU with $batch\_size = 1$, $fp16$, and $TensorRT==8.6.3$.

Quick start

Setup
conda create -n detrpose python=3.11.9
conda activate detrpose
pip install -r requirements.txt
Data Preparation

Create a folder named data to store the datasets

configs
src
tools
data
  ├── COCO2017
    ├── train2017
    ├── val2017
    ├── test2017
    └── annotations
  └── crowdpose
    ├── images
    └── annotations

COCO2017 dataset Download COCO2017 from their [website](https://cocodataset.org/#download)
CrowdPose dataset Download Crowdpose from their [github](https://github.com/jeffffffli/CrowdPose), or use the following command
pip install gdown # to download files from google drive
mkdir crowdpose
cd crowdpose
gdown 1VprytECcLtU4tKP32SYi_7oDRbw7yUTL # images
gdown 1b3APtKpc43dx_5FxizbS-EWGvd-zl7Lb # crowdpose_train.json
gdown 18-IwNa6TOGQPE0RqGNjNY1cJOfNC7MXj # crowdpose_val.json
gdown 13xScmTWqO6Y6m_CjiQ-23ptgX9sC-J9I # crowdpose_trainval.json
gdown 1FUzRj-dPbL1OyBwcIX2BgFPEaY5Yrz7S # crowdpose_test.json
unzip images.zip
Usage
COCO2017 dataset
  1. Set Model
export model=l # n s m l x
  1. Training
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}.py --device cuda --amp --pretrain dfine_${model}_obj365 

if you choose model=n, do

CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_n.py --device cuda --amp --pretrain dfine_n_obj365 
  1. Testing (COCO2017 val)
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}.py --device cuda --amp --resume <PTH_FILE_PATH> --eval
  1. Testing (COCO2017 test-dev)
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}.py --device cuda --amp --resume <PTH_FILE_PATH> --test

After running the command. You'll get a file named results.json. Compress it and submit it to the COCO competition website

  1. Replicate results (optional)
# First, download the official weights
wget https://github.com/SebastianJanampa/DETRPose/releases/download/model_weights/detrpose_hgnetv2_${model}.pth

# Second, run evaluation
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}.py --device cuda --amp --resume detrpose_hgnetv2_${model}.pth --eval
CrowdPose dataset
  1. Set Model
export model=l # n s m l x
  1. Training
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py --device cuda --amp --pretrain dfine_${model}_obj365 

if you choose model=n, do

CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_n_crowdpose.py --device cuda --amp --pretrain dfine_n_obj365 
  1. Testing
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py --device cuda --amp --resume <PTH_FILE_PATH> --eval
  1. Replicate results (optional)
# First, download the official weights
wget https://github.com/SebastianJanampa/DETRPose/releases/download/model_weights/detrpose_hgnetv2_${model}_crowdpose.pth

# Second, run evaluation
CUDA_VISIBLE_DEVICES=0,1,2,3 torchrun --master_port=7777 --nproc_per_node=4  train.py --config_file configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py --device cuda --amp --resume detrpose_hgnetv2_${model}_crowdpose.pth --eval
Lambda instances

All latency experiments using Lambda.ai instances. We have provided two README files

  1. to run a TensorRT container in a Lambda.ai instance
  2. to install a TensorRT .deb in a Lambda.ai instance

Tools

Deployment
  1. Setup
pip install -r tools/inference/requirements.txt
export model=l  # n s m l x
  1. Export onnx For COCO model
python tools/deployment/export_onnx.py --check -c configs/detrpose/detrpose_hgnetv2_${model}.py -r detrpose_hgnetv2_${model}.pth

For CrowdPose model

python tools/deployment/export_onnx.py --check -c configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py -r detrpose_hgnetv2_${model}_crowdpose.pth
  1. Export tensorrt For a specific file
trtexec --onnx="model.onnx" --saveEngine="model.engine" --fp16

or, for all files inside a folder

python tools/deployment/export_tensorrt.py
Inference (Visualization)

Check the inference_only branch for inference, which requires fewer libraries to run.

  1. Setup
export model=l  # n s m l x
  1. Inference (onnxruntime / tensorrt / torch)

Inference on images and videos is supported.

For a single file

# For COCO model
python tools/inference/onnx_inf.py --onnx detrpose_hgnetv2_${model}.onnx --input examples/example1.jpg --annotator COCO
python tools/inference/trt_inf.py --trt detrpose_hgnetv2_${model}.engine --input examples/example1.jpg --annotator COCO
python tools/inference/torch_inf.py -c configs/detrpose/detrpose_hgnetv2_${model}.py -r <checkpoint.pth> --input examples/example1.jpg --device cuda:0 

# For CrowdPose model
python tools/inference/onnx_inf.py --onnx detrpose_hgnetv2_${model}_crowdpose.onnx --input examples/example1.jpg --annotator CrowdPose
python tools/inference/trt_inf.py --trt detrpose_hgnetv2_${model}_crowdpose.engine --input examples/example1.jpg --annotator CrowdPose
python tools/inference/torch_inf.py -c configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py -r <checkpoint.pth> --input examples/example1.jpg --device cuda:0 

For a folder

# For COCO model
python tools/inference/onnx_inf.py --onnx detrpose_hgnetv2_${model}.onnx --input examples --annotator COCO
python tools/inference/trt_inf.py --trt detrpose_hgnetv2_${model}.engine --input examples --annotator COCO
python tools/inference/torch_inf.py -c configs/detrpose/detrpose_hgnetv2_${model}.py -r <checkpoint.pth> --input examples --device cuda:0 

# For CrowdPose model
python tools/inference/onnx_inf.py --onnx detrpose_hgnetv2_${model}_crowdpose.onnx --input examples --annotator CrowdPose
python tools/inference/trt_inf.py --trt detrpose_hgnetv2_${model}_crowdpose.engine --input examples --annotator CrowdPose
python tools/inference/torch_inf.py -c configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py -r <checkpoint.pth> --input examples --device cuda:0

Benchmark
  1. Setup
pip install -r tools/benchmark/requirements.txt
export model=l  # n s m l
  1. Model FLOPs, MACs, and Params
# For COCO model
python tools/benchmark/get_info.py --config configs/detrpose/detrpose_hgnetv2_${model}.py

# For COCO model
python tools/benchmark/get_info.py --config configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py
  1. TensorRT Latency
python tools/benchmark/trt_benchmark.py --infer_dir ./data/COCO2017/val2017 --engine_dir trt_engines
  1. Pytorch Latency
# For COCO model
python tools/benchmark/torch_benchmark.py -c ./configs/detrpose/detrpose_hgnetv2_${model}.py --resume detrpose_hgnetv2_${model}.pth --infer_dir ./data/COCO/val2017

# For CrowdPose model
python tools/benchmark/torch_benchmark.py -c ./configs/detrpose/detrpose_hgnetv2_${model}_crowdpose.py --resume detrpose_hgnetv2_${model}_crowdpose.pth --infer_dir ./data/COCO/val2017

Citation

If you use DETRPose or its methods in your work, please cite the following BibTeX entries:

bibtex
@misc{janampa2026detrposerealtimeendtoendmultiperson,
      title={DETRPose: Real-Time End-to-End Multi-Person Pose Estimation via Modified Transformer Decoder and Novel Denoising Keypoints}, 
      author={Sebastian Janampa and Marios Pattichis},
      year={2026},
      eprint={2506.13027},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2506.13027}, 
}

Acknowledgement

This work was supported in part by Lambda.ai.

Our work is built upon DEIM, D-FINE, Detectron2, and GroupPose.

✨ Feel free to contribute and reach out if you have any questions! ✨

Alternatives

Changes

First published . Every model's changes

    • Added, with sizes n, s, m, l, and x

Badge for a README

It says the model ran on our RTX 4090 and links to this page. It carries no number, so it never goes out of date.

ModelsThatRun: ran on RTX 4090
[![ModelsThatRun: ran on RTX 4090](https://modelsthatrun.dev/models/detrpose/badge.svg)](https://modelsthatrun.dev/models/detrpose/)

Something wrong on this page, such as a license or a number? Email us.

⇆
InputOutput