D-FINE
Real-time DETR that refines boxes as distributions, five sizes from n to x on COCO's 80 classes, Apache-2.0.
Commercial use OK for size n: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 21.9 ms median, 563 MiB VRAM peak. We scored it 42.6 box AP on COCO val2017. PyTorch weights, 15 MB.
Commercial use OK for size s: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 24.0 ms median, 638 MiB VRAM peak. We scored it 48.3 box AP on COCO val2017. PyTorch weights, 40 MB.
Commercial use OK for size m: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 27.5 ms median, 691 MiB VRAM peak. We scored it 52.1 box AP on COCO val2017. PyTorch weights, 75 MB.
Commercial use OK for size l: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 35.4 ms median, 775 MiB VRAM peak. We scored it 53.8 box AP on COCO val2017. PyTorch weights, 120 MB.
Commercial use OK for size x: code Apache-2.0, weights Apache-2.0. Measured on our RTX 4090: 42.6 ms median, 925 MiB VRAM peak. We scored it 55.6 box AP on COCO val2017. PyTorch weights, 240 MB.
License
Commercial use OK
Commercial use OK
Commercial use OK
Commercial use OK
Commercial use OK
- Code
- Apache-2.0checked 26 Oct 2026
- Weights
- Apache-2.0all sizes, checked 26 Oct 2026
COCO-only checkpoint. The Objects365-pretrained ones (*_obj365, *_obj2coco) are left out: the README says they may be bound by the Objects365 dataset terms.
COCO-only checkpoint. The Objects365-pretrained ones (*_obj365, *_obj2coco) are left out: the README says they may be bound by the Objects365 dataset terms.
COCO-only checkpoint. The Objects365-pretrained ones (*_obj365, *_obj2coco) are left out: the README says they may be bound by the Objects365 dataset terms.
COCO-only checkpoint. The Objects365-pretrained ones (*_obj365, *_obj2coco) are left out: the README says they may be bound by the Objects365 dataset terms.
COCO-only checkpoint. The Objects365-pretrained ones (*_obj365, *_obj2coco) are left out: the README says they may be bound by the Objects365 dataset terms.
On our RTX 4090, measured
21.9ms median
p90 23.1 ms, fp32, batch 1, 640x640
- VRAM peak
- 563 MiB
- Status
- Runs as is
Environment, 27 Oct 2026
NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, Peterande/D-FINE@956d1709314c2c6a4df6f34de232054578a7449f. Baseline 848 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
42.6box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 26 Oct 2026
Paper 42.8 COCO AP valREADME, COCO model zoo table
24.0ms median
p90 25.1 ms, fp32, batch 1, 640x640
- VRAM peak
- 638 MiB
- Status
- Runs as is
Environment, 27 Oct 2026
NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, Peterande/D-FINE@956d1709314c2c6a4df6f34de232054578a7449f. Baseline 848 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
48.3box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 26 Oct 2026
Paper 48.5 COCO AP valREADME, COCO model zoo table
27.5ms median
p90 28.1 ms, fp32, batch 1, 640x640
- VRAM peak
- 691 MiB
- Status
- Runs as is
Environment, 27 Oct 2026
NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, Peterande/D-FINE@956d1709314c2c6a4df6f34de232054578a7449f. Baseline 848 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
52.1box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 26 Oct 2026
Paper 52.3 COCO AP valREADME, COCO model zoo table
35.4ms median
p90 36.1 ms, fp32, batch 1, 640x640
- VRAM peak
- 775 MiB
- Status
- Runs as is
Environment, 27 Oct 2026
NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, Peterande/D-FINE@956d1709314c2c6a4df6f34de232054578a7449f. Baseline 848 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
53.8box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 26 Oct 2026
Paper 54 COCO AP valREADME, COCO model zoo table
42.6ms median
p90 43.7 ms, fp32, batch 1, 640x640
- VRAM peak
- 925 MiB
- Status
- Runs as is
Environment, 27 Oct 2026
NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, Peterande/D-FINE@956d1709314c2c6a4df6f34de232054578a7449f. Baseline 848 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.
Accuracy
55.6box APmeasured
COCO val2017, box AP, 5,000 images, fp32, pycocotools==2.0.11 · 26 Oct 2026
Paper 55.8 COCO AP valREADME, COCO model zoo table
Weights
Outputs on the shared test photos
Same photos and one score threshold for every model of this task. Failures are marked.
Sizes
| Size | Latency | VRAM | Accuracy | Weights | Runs | License |
|---|---|---|---|---|---|---|
| n | 21.9 ms640x640 | 563 MiB | 42.6 box AP, measured42.8 COCO AP val paper | 15 MB | As is | Commercial OK |
| s | 24.0 ms640x640 | 638 MiB | 48.3 box AP, measured48.5 COCO AP val paper | 40 MB | As is | Commercial OK |
| m | 27.5 ms640x640 | 691 MiB | 52.1 box AP, measured52.3 COCO AP val paper | 75 MB | As is | Commercial OK |
| l | 35.4 ms640x640 | 775 MiB | 53.8 box AP, measured54 COCO AP val paper | 120 MB | As is | Commercial OK |
| x | 42.6 ms640x640 | 925 MiB | 55.6 box AP, measured55.8 COCO AP val paper | 240 MB | As is | Commercial OK |