Skip to content
ModelsThatRun

DEIM

D-FINE trained with DEIM's dense one-to-one matching, five sizes from n to x on COCO's 80 classes, Apache-2.0.

Size

Commercial use OK for size n: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 23.4 ms median, 566 MiB VRAM peak. We scored it 42.9 box AP on COCO val2017. PyTorch weights, 15 MB.

License

Commercial use OK

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

The README links the weights on Google Drive and gives them no separate license, so the repository's Apache-2.0 applies. This is DEIM, not DEIMv2, whose repository carries its own license.

On our RTX 4090, measured

23.4ms median

p90 23.6 ms, fp32, batch 1, 640x640

VRAM peak
566 MiB
Status
Runs as is

Phases of one call

Pre-processing
9.6 ms
Network
12.7 ms
Post-processing
0.6 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 23.0 ms there.

Environment, 22 Nov 2026

NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, ShihuaHuang95/DEIM@09d35d53d39ee3145a1e61e3a989b28b9468d1dd. Baseline 1032 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Accuracy

42.9box APmeasured

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

Paper 43 COCO APREADME, DEIM-D-FINE table (AP DEIM column)

Weights

PyTorch

Size
15 MB
sha256
8536a97a57bad2951cb4679e8578be225e4a19db678ab568a44e538f4f0fc917
Download n weights

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

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
n23.4 ms640x640566 MiB42.9 box AP, measured43 COCO AP paper15 MBAs isCommercial OK
s25.3 ms640x640648 MiB48.7 box AP, measured49 COCO AP paper40 MBAs isCommercial OK
m28.7 ms640x640700 MiB52.5 box AP, measured52.7 COCO AP paper75 MBAs isCommercial OK
l33.3 ms640x640780 MiB54.5 box AP, measured54.7 COCO AP paper120 MBAs isCommercial OK
x36.7 ms640x640909 MiB56.3 box AP, measured56.5 COCO AP paper241 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 89%, memory-bound 6%, CUDA cores, FP32 2%, host–device copies 2%, tensor cores, TF32 1%.

GeForce (13)
GPUFitsLatency
GeForce RTX 5090Blackwell, 32 GB GDDR7Yes≈ 23 ms
GeForce RTX 5080Blackwell, 16 GB GDDR7Yes≈ 23–24 ms
GeForce RTX 5070 TiBlackwell, 16 GB GDDR7Yes≈ 24 ms
GeForce RTX 5070Blackwell, 12 GB GDDR7Yes≈ 24–25 ms
GeForce RTX 5060 Ti 16GBBlackwell, 16 GB GDDR7Yes≈ 24–27 ms
GeForce RTX 5060Blackwell, 8 GB GDDR7Yes≈ 24–28 ms
GeForce RTX 4080Ada Lovelace, 16 GB GDDR6XYes≈ 24 ms
GeForce RTX 4070 TiAda Lovelace, 12 GB GDDR6XYes≈ 24–26 ms
GeForce RTX 4070Ada Lovelace, 12 GB GDDR6XYes≈ 24–26 ms
GeForce RTX 3090Ampere, 24 GB GDDR6XYes≈ 24–25 ms
GeForce RTX 3080Ampere, 10 GB GDDR6XYes≈ 24–25 ms
GeForce RTX 3070 TiAmpere, 8 GB GDDR6XYes≈ 24–27 ms
GeForce RTX 3070Ampere, 8 GB GDDR6Yes≈ 24–28 ms
Workstation (4)
GPUFitsLatency
RTX PRO 6000 Blackwell Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 22–23 ms
RTX PRO 6000 Blackwell Max-Q Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 22–23 ms
RTX 6000 Ada GenerationAda Lovelace, 48 GB GDDR6Yes≈ 23 ms
RTX A6000Ampere, 48 GB GDDR6Yes≈ 24 ms
Data center (6)
GPUFitsLatency
B200 (HGX, one GPU)Blackwell, 180 GB HBM3EYes≈ 22–23 ms
H200 SXMHopper, 141 GB HBM3eYes≈ 22–23 ms
H100 SXMHopper, 80 GB HBM3Yes≈ 22–23 ms
A100 SXM 80GBAmpere, 80 GB HBM2eYes≈ 24 ms
L40SAda Lovelace, 48 GB GDDR6Yes≈ 23 ms
L4Ada Lovelace, 24 GB GDDR6Yes≈ 24–28 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 threads83.6 ms640x640923 MiB
nONNX Runtime1.31.1 · fp32 · 8 threads48.4 ms640x640925 MiB
sPyTorch2.14.1 · fp32 · 8 threads154 ms640x6401022 MiB
sONNX Runtime1.31.1 · fp32 · 8 threads96.0 ms640x6401.0 GiB
mPyTorch2.14.1 · fp32 · 8 threads253 ms640x6401.1 GiB
mONNX Runtime1.31.1 · fp32 · 8 threads162 ms640x6401.1 GiB
lPyTorch2.14.1 · fp32 · 8 threads346 ms640x6401.1 GiB
lONNX Runtime1.31.1 · fp32 · 8 threads199 ms640x6401.2 GiB
xPyTorch2.14.1 · fp32 · 8 threads702 ms640x6401.4 GiB
xONNX Runtime1.31.1 · fp32 · 8 threads509 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

Where to read their own account of it.

Alternatives

Changes

First published . Every model's changes

    • m re-measured · RTX 4090 · PyTorch fp32, 640x640: 28.6 → 28.7 ms
    • l re-measured · RTX 4090 · PyTorch fp32, 640x640: 33.0 → 33.3 ms
    • x re-measured · RTX 4090 · PyTorch fp32, 640x640: 36.4 → 36.7 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 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/deim/badge.svg)](https://modelsthatrun.dev/models/deim/)

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

⇆
InputOutput