D-FINE: checkpoints in another repository, logs on a branch
D-FINE: Redefine Regression Task of DETRs as Fine-grained Distribution Refinement [ICLR 2025 Spotlight]
At a glance
- What is it?
- D-FINE is a real-time object detector from an ICLR 2025 spotlight paper, published with five model sizes, per-model configuration files and a table of accuracy, parameter count, latency and compute cost. The weights live in a second repository, the training logs come off a branch, the latency column names no hardware, and the Dockerfile is two lines over forty commented-out ones.
- Who is it for?
- D-FINE fits a detection team that wants an alternative to the usual transformer detectors and has the training budget to fine-tune one of the published sizes. Verify four things before you start.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 49 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- Peterande/D-FINE3,422 ★ · +88
| Repository | 2026-09-24 | 2026-11-23 |
|---|---|---|
| Peterande/D-FINE | 3.3k | 3.4k |
88 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The first line is a comment holding a placeholder paper number
The very first thing in the file is an HTML comment, and the link inside it points at a paper identifier consisting of the literal word xxxxxx. The real preprint is linked properly further down. So the file opens with a placeholder that survived publishing, which is the sort of thing that tells you the header was assembled rather than written. Two more header details are worth naming. A commented-out mail link sits among the badges, carrying the first author's address, with the surname before the given name while the author list below uses the opposite order. And the badge linking to the hosted demo points at a personal account on the model hub rather than at the project's own namespace, so the demo and the code are not under one identity.
The model name is written two ways in one file
In the prose the project's name and its model sizes are written with ordinary hyphens. In the headings and in every model-zoo table cell they are written with a non-breaking hyphen, expressed as a numeric character entity, and the page title also carries numeric entities for non-breaking spaces. So the table headers read as something that is not the string the prose uses, and a search for the plain hyphenated form misses both tables and the title. It also means the two spellings differ in a way that matters for anyone scripting against the readme: one is four ASCII characters and the other is two ASCII characters with two wide ones. Everything else about the naming is consistent, including the five sizes from smallest to largest and the shared backbone prefix in the configuration filenames, where only the size letter changes.
Weights in a second repository, logs off a branch
This repository publishes no releases, and none of its artefacts are in it. Every checkpoint link points at a different repository under the same owner, under a single release tag, and every training-log link points at that same second repository but as raw file content served from its default branch rather than from a release. So the weights are versioned once and frozen, while the logs can change under you without any version marker at all. There is also a row-level inconsistency in the larger-pretraining table: one entry's checkpoint and log filenames carry a suffix marking a later retrain of that model, while the configuration link on the same row points at the file without the suffix. The link text on every row is the accuracy figure itself, so a reader copying links from a table gets no model name with them.
The latency column names no hardware, no batch size and no precision
Each table row carries five quantities: accuracy on the validation split, parameter count, latency, compute cost, and links. Latency is given to two decimal places in milliseconds, parameters to whole millions, and compute cost to bare integers, so three precisions sit in one row. More importantly, nothing in the column says what the number was measured on. The one place a hardware name appears is the updates section, which reports a throughput figure for the smallest model on a specific accelerator class, and that figure is consistent with the table's latency for the same model, which is a point in the table's favour. Beyond that the column has to be read as relative between the five sizes, because batch size and numeric precision are unspecified and both move it.
Three of nine dependencies have a floor and six are bare names
The requirements file names nine packages and constrains three of them: the deep learning framework, its vision extension, and the evaluation package. The other six appear with no version at all, including the numerical library, the scientific library, the configuration parser, the logging library, the transformer library and the compute-cost estimator. That last one is worth calling out because it is where the compute column in the tables comes from: the figures are produced by a third-party estimator rather than measured on hardware, and the accuracy figures come from a third-party evaluation implementation. So the two columns a reader is most likely to quote are the two most dependent on somebody else's code, and neither the file nor the tables say so.
The Dockerfile is two lines over forty commented-out ones
The build file does not build anything. Its only instruction pulls a finished image from a container registry in China, from the author's own account, tagged as version one. Everything else, roughly forty lines, is commented out, under a header that gives a four-step login, tag and push recipe. That commented recipe is the interesting part, because it documents what is actually inside that image: a CUDA developer base distribution on a 2018 operating system release, pulled through an unofficial mirror of the public hub, with the distribution package sources rewritten to point at three different Chinese mirrors, a full package upgrade, and a long tool install that includes an SSH server and a debugger. It then downloads the latest conda installer over the network with no checksum and installs it, and the file stops partway through a mirror URL.
The updates log covers one month and the paper is two years old
The updates section is four ticked boxes, and all four are dated within three weeks of each other in late 2024: the initial release, custom-dataset fine-tuning configurations, a retrained large model reported as two percent better, and the smallest model. The paper behind the project is an ICLR 2025 spotlight, and the repository was pushed to in August 2026, so the log describes roughly the first month of a project whose paper and code have both been public for about two years. The two percent figure has no baseline attached. The release note for the smallest model misspells achieving. And the video comparison has a draft comment beneath it naming a different size of the competing model than the published paragraph above it, so two versions of the same claim survive in the file with different model identifiers.
No packaging manifest, and the import path is two segments deep
There is no setup file and no project manifest anywhere in the root, so the project is not installable; you clone it and run the training script at the root. The package lives under a nested namespace path inside the source directory, which is also where the two blog posts live, one in English and one in Chinese. So the import path for the library is a two-segment namespace that shares a directory with prose. The front page is translated into three languages while the blog exists in two, with no Japanese version. And the recommendation to start fine-tuning from the larger pretraining checkpoint is cut off mid-sentence, at the point where it warns that simple categories may overfit, which is the caveat a reader most needs and the one that never finishes.
Editorial conclusion
D-FINE fits a detection team that wants an alternative to the usual transformer detectors and has the training budget to fine-tune one of the published sizes. Verify four things before you start. Decide which size from the table's own numbers, and read the latency column knowing it names no hardware, no batch size and no precision, so treat it as relative rather than absolute. Pick your pretrained checkpoint deliberately, because the file recommends the larger pretraining set for complex scenes and warns that simple categories can overfit, in a sentence it then cuts off. Expect to fetch weights and logs from a different repository on a branch rather than from a release. And budget for the training side, since the evaluation numbers in the table come from a third-party evaluator and the compute column from a third-party estimator, both declared as dependencies.
Frequently asked questions
What does d-fine do?
It is a real-time object detector that recasts the bounding-box regression step of transformer detectors as a fine-grained distribution refinement problem, and adds a self-distillation stage for localisation. Five model sizes are published with configuration files, checkpoints and training logs, on two pretraining setups, with accuracy, parameter count, latency and compute cost tabulated for each.
d-fine vs yolo for real-time detection?
The file makes one direct comparison and it is a video demonstration rather than a benchmark: the detector and a competing eleventh-generation model are run on a street scene video, and the detector is said to find nearly all targets including small backpacks, bicycles and traffic lights, with higher confidence and better precision on blurred edges. No accuracy table for that comparison appears, and a draft comment beneath the published paragraph names a different size of the competing model than the text above it.
d fine vs yolov11 and yolov9?
Neither comparison is quantified anywhere in the file. The only cross-model evidence is the single video demonstration, and the accuracy figures in the tables are reported against a detection dataset rather than against any other detector. So the tables will let you choose among the five published sizes, and will not let you choose against another model family.
d-fine vs rf-detr and rt detr?
Not covered. The file's stated comparison is against a fixed detection benchmark, where a third-party page is linked for the real-time detection leaderboard, and its pretraining comparison is between two pretraining datasets for the same model sizes rather than between detectors. No other detector appears in any table.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/peterande-d-fine)Star history chart for your README
[](https://hysenlabs.com/projects/peterande-d-fine)Was this useful?