DEIM and DEIMv2 detect in real time on DINOv3 features

DEIM (DETR with Improved Matching) is a training framework for real-time DETR-style detectors, and DEIMv2 extends it with DINOv3 features. In Supervisely you train DEIMv2 and DEIM-D-FINE checkpoints on your labeled images and serve them on your GPU, with ONNX and TensorRT export.

Poster of the Train DEIMv2 app: real-time object detection meets DINOv3
Labels
  • Bounding boxes
Apps
Train, Serve

Apps in the Supervisely Ecosystem

Every model in Supervisely comes as a Supervisely App: a module from the Ecosystem that plugs into the platform and runs on your own GPU, with no code to install. A Serve App puts the model behind the labeling tools, and where the model can be trained, a Train App fits it to your labeled project. All Apps work on the same projects, so you add a model, update it or swap it for another without changing anything else.

DEIM, D-FINE and DEIMv2

DEIM ("DETR with Improved Matching", CVPR 2025) is a way to train DETR-style detectors so they converge faster and more accurately. Its authors applied it to two existing real-time detectors, D-FINE and RT-DETRv2. DEIMv2 carries the framework further with features from DINOv3, and its authors report that the S-sized model passes 50 AP on COCO.

Supervisely has no separate D-FINE app: D-FINE appears here as the base of the DEIM-D-FINE checkpoints. The Train DEIMv2 app lists three groups, all pretrained on COCO:

GroupSizes
DEIMv2 (DINOv3)Atto, Femto, Pico, N, S, M, L, X
DEIM-D-FINEN, S, M, L, X
DEIM-RT-DETRv2S, M, M*, L, X

The ultra-light sizes, Atto to Pico, give up accuracy for a small footprint; the large ones trade speed for accuracy on a server GPU.

From a labeled project to a checkpoint

Draw bounding boxes around the objects, or import a dataset you already have: COCO, Pascal VOC and YOLO all become ordinary projects. Then run the app from the project's context menu:

  1. Reuse the cached project, or download it again after edits.
  2. Split it into training and validation images.
  3. Select the classes.
  4. Choose a group and a size from the table above, or a checkpoint you trained before.
  5. Adjust the hyperparameters, keep the evaluation on, and tick ONNX and TensorRT if the model is going to an edge device.
  6. Name the experiment and start it.

The finished run appears in the Experiments table with its evaluation report, and the checkpoints sit in Team Files.

Serving it, or running it on video with DeepStream

Serve DEIMv2 deploys a checkpoint on your agent, on a GPU where there is one, for pre-labeling or for the inference API.

For video pipelines, the repository includes a DeepStream setup. Download model.pth (or best.pth), model_config.yml and model_meta.json from Team Files, build the Docker image from the supervisely-ecosystem/deim repository and run it on a video. It tracks objects with the NvSORT tracker and writes either an MP4 with the boxes drawn or a JSON file with a box, class, confidence and track id per object in every frame. It needs an NVIDIA GPU and the NVIDIA Container Toolkit.

When to pick something else

DEIMv2 detects boxes only. For masks per object, train YOLO segmentation, Detectron2 or MMDetection. If you are already on RT-DETRv2 and want the smallest change, the RT-DETRv2 apps follow the same steps; training both on the same split shows whether the DEIM checkpoints are worth the switch for your data.

Frequently asked questions.

Can I train D-FINE in Supervisely?

Through DEIM: the Train DEIMv2 app includes DEIM-D-FINE checkpoints in sizes N to X, which are D-FINE detectors trained with the DEIM method. There is no separate D-FINE app.

Which DEIMv2 size should I start with?

Start with S or M on a server GPU and compare the evaluation reports; move down to N, Pico, Femto or Atto when the model must run on an edge device and the evaluation still meets your bar.

Train and serve models on your own data.

Label a project in a free account, train a model on it from the browser and deploy it on your own GPU. Or book a demo to run Supervisely on your servers.