Skip to content
ModelsThatRun

RT-DETR

The first real-time DETR: ResNet R18 to R101 on COCO's 80 classes, three also pre-trained on Objects365, converted from PaddlePaddle, Apache-2.0.

Size

Commercial use OK for size r18: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 19.6 ms median, 956 MiB VRAM peak. We scored it 46.2 box AP on COCO val2017. PyTorch weights, 77 MB.

License

Commercial use OK

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

COCO-only checkpoint, converted by the authors from the PaddlePaddle model. The README links the weights from the authors' storage repository and gives them no separate license, so the RT-DETR repository's Apache-2.0 applies.

On our RTX 4090, measured

19.6ms median

p90 20.2 ms, fp32, batch 1, 640x640

VRAM peak
956 MiB
Status
Runs as is
Environment, 22 Nov 2026

NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 11.7, torch 2.0.1+cu117, Python 3.11.11, lyuwenyu/RT-DETR@df2a96c8c3a098567a1149bf0248da6efe6d495d rtdetr_pytorch. Baseline 1045 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Accuracy

46.2box APmeasured

COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 17 Nov 2026

Paper 46.4 COCO APREADME, model zoo table (rtdetr_pytorch); it says the converted weights may differ slightly from the paper

Weights

PyTorch

Size
77 MB
sha256
3ba8b5c909c9a1c4f21e96d0a7251ab1a485093955ca327d0061fef8d33c66f0
Download r18 weights

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

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
r1819.6 ms640x640956 MiB46.2 box AP, measured46.4 COCO AP paper77 MBAs isCommercial OK
r3421.7 ms640x640995 MiB48.7 box AP, measured48.9 COCO AP paper120 MBAs isCommercial OK
r50-m23.6 ms640x640975 MiB51.1 box AP, measured51.3 COCO AP paper140 MBAs isCommercial OK
r5027.9 ms640x6401.0 GiB52.9 box AP, measured53.1 COCO AP paper164 MBAs isCommercial OK
r10135.8 ms640x6401.2 GiB54.1 box AP, measured54.3 COCO AP paper293 MBAs isCommercial OK
r18-o36518.9 ms640x640953 MiB48.8 box AP, measured49 COCO AP paper77 MBAs isCommercial OK
r50-o36527.8 ms640x6401014 MiB55.0 box AP, measured55.2 COCO AP paper164 MBAs isCommercial OK
r101-o36535.6 ms640x6401.2 GiB56.0 box AP, measured56.2 COCO AP paper293 MBAs isCommercial OK

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
r18PyTorch2.0.1 · fp32 · 8 threads188 ms640x640750 MiB
r34PyTorch2.0.1 · fp32 · 8 threads236 ms640x640809 MiB
r50-mPyTorch2.0.1 · fp32 · 8 threads424 ms640x640963 MiB
r50PyTorch2.0.1 · fp32 · 8 threads493 ms640x6401005 MiB
r101PyTorch2.0.1 · fp32 · 8 threads1340 ms640x6401.3 GiB
r18-o365PyTorch2.0.1 · fp32 · 8 threads210 ms640x640735 MiB
r50-o365PyTorch2.0.1 · fp32 · 8 threads498 ms640x6401017 MiB
r101-o365PyTorch2.0.1 · fp32 · 8 threads1427 ms640x6401.3 GiB

From the authors

Where to read their own account of it.

Alternatives

Changes

First published . Every model's changes

    • New sizes: r18-o365, r50-o365, and r101-o365
    • r18 re-measured · RTX 4090 · PyTorch fp32, 640x640: 19.3 → 19.6 ms
    • r50-m re-measured · RTX 4090 · PyTorch fp32, 640x640: 23.7 → 23.6 ms
    • r50 re-measured · RTX 4090 · PyTorch fp32, 640x640: 27.7 → 27.9 ms
    • r101 re-measured · RTX 4090 · PyTorch fp32, 640x640: 36.1 → 35.8 ms
    • Note: Every GPU row timed again with glibc's heap trimming off, which removes a slower level some processes settled at.
    • Added, with sizes r18, r34, r50-m, r50, and r101

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/rt-detr/badge.svg)](https://modelsthatrun.dev/models/rt-detr/)

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

⇆
InputOutput