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.
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.
Commercial use OK for size r34: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 21.7 ms median, 995 MiB VRAM peak. We scored it 48.7 box AP on COCO val2017. PyTorch weights, 120 MB.
Commercial use OK for size r50-m: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 23.6 ms median, 975 MiB VRAM peak. We scored it 51.1 box AP on COCO val2017. PyTorch weights, 140 MB.
Commercial use OK for size r50: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 27.9 ms median, 1.0 GiB VRAM peak. We scored it 52.9 box AP on COCO val2017. PyTorch weights, 164 MB.
Commercial use OK for size r101: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 35.8 ms median, 1.2 GiB VRAM peak. We scored it 54.1 box AP on COCO val2017. PyTorch weights, 293 MB.
Commercial use OK for size r18-o365: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 18.9 ms median, 953 MiB VRAM peak. We scored it 48.8 box AP on COCO val2017. PyTorch weights, 77 MB.
Commercial use OK for size r50-o365: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 27.8 ms median, 1014 MiB VRAM peak. We scored it 55.0 box AP on COCO val2017. PyTorch weights, 164 MB.
Commercial use OK for size r101-o365: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 35.6 ms median, 1.2 GiB VRAM peak. We scored it 56.0 box AP on COCO val2017. PyTorch weights, 293 MB.
License
Commercial use OK
Commercial use OK
Commercial use OK
Commercial use OK
Commercial use OK
Commercial use OK
Commercial use OK
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.
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.
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.
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.
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.
Fine-tuned on COCO from Objects365 pre-training, converted by the authors from the PaddlePaddle model. The README gives the weights no separate license, so the RT-DETR repository's Apache-2.0 applies; whether Objects365's terms reach the weights isn't settled.
Fine-tuned on COCO from Objects365 pre-training, converted by the authors from the PaddlePaddle model. The README gives the weights no separate license, so the RT-DETR repository's Apache-2.0 applies; whether Objects365's terms reach the weights isn't settled.
Fine-tuned on COCO from Objects365 pre-training, converted by the authors from the PaddlePaddle model. The README gives the weights no separate license, so the RT-DETR repository's Apache-2.0 applies; whether Objects365's terms reach the weights isn't settled.
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
21.7ms median
p90 22.3 ms, fp32, batch 1, 640x640
- VRAM peak
- 995 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 1034 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
48.7box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 17 Nov 2026
Paper 48.9 COCO APREADME, model zoo table (rtdetr_pytorch); it says the converted weights may differ slightly from the paper
23.6ms median
p90 24.2 ms, fp32, batch 1, 640x640
- VRAM peak
- 975 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 1066 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
51.1box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 17 Nov 2026
Paper 51.3 COCO APREADME, model zoo table (rtdetr_pytorch); it says the converted weights may differ slightly from the paper
27.9ms median
p90 28.7 ms, fp32, batch 1, 640x640
- VRAM peak
- 1.0 GiB
- 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 1036 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
52.9box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 17 Nov 2026
Paper 53.1 COCO APREADME, model zoo table (rtdetr_pytorch); it says the converted weights may differ slightly from the paper
35.8ms median
p90 37.9 ms, fp32, batch 1, 640x640
- VRAM peak
- 1.2 GiB
- 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 1037 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
54.1box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 17 Nov 2026
Paper 54.3 COCO APREADME, model zoo table (rtdetr_pytorch); it says the converted weights may differ slightly from the paper
18.9ms median
p90 20.1 ms, fp32, batch 1, 640x640
- VRAM peak
- 953 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 1075 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
48.8box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 21 Nov 2026
Paper 49 COCO APREADME, model zoo table (rtdetr_pytorch), COCO+Objects365 row; it says the converted weights may differ slightly from the paper
27.8ms median
p90 28.9 ms, fp32, batch 1, 640x640
- VRAM peak
- 1014 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 1071 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
55.0box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 21 Nov 2026
Paper 55.2 COCO APREADME, model zoo table (rtdetr_pytorch), COCO+Objects365 row; it says the converted weights may differ slightly from the paper
35.6ms median
p90 37.3 ms, fp32, batch 1, 640x640
- VRAM peak
- 1.2 GiB
- 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 1070 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
56.0box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 21 Nov 2026
Paper 56.2 COCO APREADME, model zoo table (rtdetr_pytorch), COCO+Objects365 row; it says the converted weights may differ slightly from the paper
Weights
PyTorch
- Size
- 77 MB
- sha256
3ba8b5c909c9a1c4f21e96d0a7251ab1a485093955ca327d0061fef8d33c66f0
PyTorch
- Size
- 120 MB
- sha256
fb167e502ce47ad6959bfd691225c0ddf318f7c346ae419dc1ca4c218764b578
PyTorch
- Size
- 140 MB
- sha256
0da37b37a2fbbc74dd2b6de905612800bc8a4a06aab5475899677a5b3b812589
PyTorch
- Size
- 164 MB
- sha256
dfaafa5a3d29958a360c35f1fad553a6f287bfae9967e8ee007e65cff21ddf45
PyTorch
- Size
- 293 MB
- sha256
b60c3366d5b61cdaff466b5eb081b010a3ca05f6fa2bef0ede2ba843a3f70025
PyTorch
- Size
- 77 MB
- sha256
8f2278c42012a41971f900448b3d4dcb398356e8175e2b3ee4600e37eab0a045
PyTorch
- Size
- 164 MB
- sha256
7788173453f771d45d0b49ffa23dbeb60796ccb8425afa52befb0b8fe033608c
PyTorch
- Size
- 293 MB
- sha256
db3d85e3e9787daa63586284cba77bd98d0836aaf76e07b4b16aeb87d370ef00
Outputs on the shared test photos
Same photos and one score threshold for every model of this task. Failures are marked.
breakfast-top-downFails: labels the cake slice as pizza and the custard tart as a bowl
crossing-amsterdamFails: labels the stroller as a backpack
drone-city-blockFails: boxes a rooftop as a car
fire-engine-blurFails: labels the fire engine as a bus
bike-parade-riders
cafe-table-glasses
cows-pasture
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
living-room-couch
marathon-crossing
marathon-pack
parked-bicycles
sheep-meadow-lambs
shepherd-sheep
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
crossing-amsterdamFails: labels the stroller as a backpack
drone-city-blockFails: boxes a rooftop as a car and a fountain as a clock
fire-engine-blurFails: labels the fire engine as a bus
marathon-crossingFails: labels a paper bag in a runner's hands as a frisbee
shepherd-sheepFails: misses the whole flock of sheep
street-night-chinatownFails: labels a sidewalk planter as a fire hydrant
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cows-pasture
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
living-room-couch
marathon-pack
parked-bicycles
sheep-meadow-lambs
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
crossing-amsterdamFails: labels the stroller as a backpack
fire-engine-blurFails: labels the fire engine as a bus
shepherd-sheepFails: labels the black lamb as a dog
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cows-pasture
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
drone-city-block
living-room-couch
marathon-crossing
marathon-pack
parked-bicycles
sheep-meadow-lambs
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
crossing-amsterdamFails: labels the stroller as a backpack
drone-city-blockFails: boxes a tree as broccoli
fire-engine-blurFails: labels the fire engine as a bus
shepherd-sheepFails: labels the black lamb as a dog
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cows-pasture
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
living-room-couch
marathon-crossing
marathon-pack
parked-bicycles
sheep-meadow-lambs
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
fire-engine-blurFails: labels the fire engine as a bus
marathon-packFails: labels the blue keep-right sign as a stop sign
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cows-pasture
crossing-amsterdam
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
drone-city-block
living-room-couch
marathon-crossing
parked-bicycles
sheep-meadow-lambs
shepherd-sheep
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
crossing-amsterdamFails: labels the stroller as a backpack
cyclist-bike-laneFails: boxes a tower block as a traffic light
fire-engine-blurFails: labels the fire engine as a bus
marathon-packFails: labels the blue keep-right sign as a frisbee
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cows-pasture
dining-room-kitchen
dog-walk-square
drone-city-block
living-room-couch
marathon-crossing
parked-bicycles
sheep-meadow-lambs
shepherd-sheep
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
crossing-amsterdamFails: labels the stroller as a backpack
fire-engine-blurFails: labels the fire engine as a bus
shepherd-sheepFails: labels the black lamb as a dog
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cows-pasture
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
drone-city-block
living-room-couch
marathon-crossing
marathon-pack
parked-bicycles
sheep-meadow-lambs
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
cows-pastureFails: misses the group of cows lying on the right
crossing-amsterdamFails: labels the stroller as a backpack
fire-engine-blurFails: labels the fire engine as a bus and a truck
bike-parade-riders
breakfast-top-down
cafe-table-glasses
cyclist-bike-lane
dining-room-kitchen
dog-walk-square
drone-city-block
living-room-couch
marathon-crossing
marathon-pack
parked-bicycles
sheep-meadow-lambs
shepherd-sheep
street-night-chinatown
terrier-dog-park
three-cats-couch
tokyo-street-cyclists
Sizes
| Size | Latency | VRAM | Accuracy | Weights | Runs | License |
|---|---|---|---|---|---|---|
| r18 | 19.6 ms640x640 | 956 MiB | 46.2 box AP, measured46.4 COCO AP paper | 77 MB | As is | Commercial OK |
| r34 | 21.7 ms640x640 | 995 MiB | 48.7 box AP, measured48.9 COCO AP paper | 120 MB | As is | Commercial OK |
| r50-m | 23.6 ms640x640 | 975 MiB | 51.1 box AP, measured51.3 COCO AP paper | 140 MB | As is | Commercial OK |
| r50 | 27.9 ms640x640 | 1.0 GiB | 52.9 box AP, measured53.1 COCO AP paper | 164 MB | As is | Commercial OK |
| r101 | 35.8 ms640x640 | 1.2 GiB | 54.1 box AP, measured54.3 COCO AP paper | 293 MB | As is | Commercial OK |
| r18-o365 | 18.9 ms640x640 | 953 MiB | 48.8 box AP, measured49 COCO AP paper | 77 MB | As is | Commercial OK |
| r50-o365 | 27.8 ms640x640 | 1014 MiB | 55.0 box AP, measured55.2 COCO AP paper | 164 MB | As is | Commercial OK |
| r101-o365 | 35.6 ms640x640 | 1.2 GiB | 56.0 box AP, measured56.2 COCO AP paper | 293 MB | As is | Commercial 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
| Size | Runtime | Latency on the CPU | RAM peak |
|---|---|---|---|
| r18 | PyTorch2.0.1 · fp32 · 8 threads | 188 ms640x640 | 750 MiB |
| r34 | PyTorch2.0.1 · fp32 · 8 threads | 236 ms640x640 | 809 MiB |
| r50-m | PyTorch2.0.1 · fp32 · 8 threads | 424 ms640x640 | 963 MiB |
| r50 | PyTorch2.0.1 · fp32 · 8 threads | 493 ms640x640 | 1005 MiB |
| r101 | PyTorch2.0.1 · fp32 · 8 threads | 1340 ms640x640 | 1.3 GiB |
| r18-o365 | PyTorch2.0.1 · fp32 · 8 threads | 210 ms640x640 | 735 MiB |
| r50-o365 | PyTorch2.0.1 · fp32 · 8 threads | 498 ms640x640 | 1017 MiB |
| r101-o365 | PyTorch2.0.1 · fp32 · 8 threads | 1427 ms640x640 | 1.3 GiB |
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.
[](https://modelsthatrun.dev/models/rt-detr/)Something wrong on this page, such as a license or a number? Email us.