RT-DETR and RT-DETRv2 detect in real time with transformers

RT-DETR (Real-Time DEtection TRansformer) and RT-DETRv2 are real-time object detectors built on the DETR transformer design, with no non-maximum suppression step after prediction. In Supervisely you train RT-DETRv2 on your labeled images, serve it on your GPU and export it to ONNX and TensorRT.

RT-DETRv2 detecting hockey players with bounding boxes
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.

What RT-DETR changes

Detection transformers (DETR) predict a fixed set of objects and match each prediction to one ground truth object during training, so they need no non-maximum suppression to remove duplicate boxes. The original DETR was too slow for real-time use. RT-DETR, published at CVPR 2024 as "DETRs Beat YOLOs on Real-time Object Detection", made the design fast enough for it, and RT-DETRv2 added a set of "bag-of-freebies" changes and an improved training strategy on top.

Both generations are in the Ecosystem. RT-DETRv2 is the current one, and the platform's model training page lists it among the models you can train without code.

Training RT-DETRv2 on your classes

Start Train RT-DETRv2 from the project's context menu or the Ecosystem. The app asks, in order, whether to reuse the cached project, how to split it into train and validation, which classes to learn and which pretrained checkpoint to start from. The hyperparameters step also decides whether the run ends with an evaluation and whether the checkpoint is converted to ONNX and TensorRT. After you name the experiment, the training charts update live, and checkpoints are saved to the experiments folder in Team Files.

Label objects with bounding boxes. Data in COCO, Pascal VOC or YOLO imports as a project; see the COCO format page for the most common one.

Serving your own or external checkpoints

Serve RT-DETRv2 deploys a pretrained checkpoint, one trained in Supervisely or one trained elsewhere. An external model needs three files in Team Files: the checkpoint, the model config and a .json file that maps class indexes to names, such as {"0": "car", "1": "bus"}. Links to files outside Team Files are not accepted.

The first-generation Train RT-DETR app remains for older runs. It converts every label to a box, offers ready-made augmentation templates or a custom pipeline, and saves checkpoints to an RT-DETR folder in Team Files.

RT-DETR vs YOLO

Both are real-time detectors, and in Supervisely both train without code, end with an evaluation report and export to ONNX and TensorRT. The practical differences are elsewhere:

  • RT-DETR needs no NMS step after prediction; most YOLO versions rely on one, and YOLOv10 was the first trained to work without it.
  • The Ultralytics YOLO app also trains instance segmentation and pose models; RT-DETRv2 here detects boxes only.
  • The licenses differ: check the license of each repository against how you ship the model.

The reliable way to decide is to train both on your own validation set and compare the two runs side by side. For a newer DETR-style detector, also try DEIMv2, which starts from RT-DETRv2 and D-FINE.

Frequently asked questions.

Is RT-DETRv2 better than YOLO?

It depends on your data and hardware. Train both on the same project, then select the two experiments and compare their evaluation reports on the same validation set.

Can I serve an RT-DETRv2 model I trained outside Supervisely?

Yes. Upload the checkpoint, its model config and a JSON class mapping to Team Files, open the External Models tab of Serve RT-DETRv2 and point to the three files.

What does RT-DETR stand for?

Real-Time DEtection TRansformer: a DETR-style detector that predicts boxes without anchors or non-maximum suppression and is fast enough for real-time use. RT-DETRv2 is its second version, the one the Supervisely apps train and serve.

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.