Help preserve open and free AI for humanity's future

← All models

PekingU_rtdetr_r101vd_coco_o365

PekingU · View on Hugging Face ↗

RT-DETR object detector (ResNet-101 backbone) trained on COCO + Objects365 for 365-class detection.

✓ verified · rehash-vs-hf-metadata at 2026-08-24T11:56:24Z

apache-2.0293.1 MB (307,346,137 bytes)transformerssafetensorsrt_detrobject-detectionvisionendpoints_compatible1 language (en)paper: 2304.08069

Get this model

Download PekingU_rtdetr_r101vd_coco_o365.torrent

Recommended — the .torrent carries the webseed url-list, so your client can fall back to plain HTTPS if the swarm is thin. See/verify for the full download + verification walkthrough.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


library_name: transformers license: apache-2.0 language:


Model Card for RT-DETR

Table of Contents

  1. Model Details
  2. Model Sources
  3. How to Get Started with the Model
  4. Training Details
  5. Evaluation
  6. Model Architecture and Objective
  7. Citation

Model Details

The YOLO series has become the most popular framework for real-time object detection due to its reasonable trade-off between speed and accuracy. However, we observe that the speed and accuracy of YOLOs are negatively affected by the NMS. Recently, end-to-end Transformer-based detectors (DETRs) have provided an alternative to eliminating NMS. Nevertheless, the high computational cost limits their practicality and hinders them from fully exploiting the advantage of excluding NMS. In this paper, we propose the Real-Time DEtection TRansformer (RT-DETR), the first real-time end-to-end object detector to our best knowledge that addresses the above dilemma. We build RT-DETR in two steps, drawing on the advanced DETR: first we focus on maintaining accuracy while improving speed, followed by maintaining speed while improving accuracy. Specifically, we design an efficient hybrid encoder to expeditiously process multi-scale features by decoupling intra-scale interaction and cross-scale fusion to improve speed. Then, we propose the uncertainty-minimal query selection to provide high-quality initial queries to the decoder, thereby improving accuracy. In addition, RT-DETR supports flexible speed tuning by adjusting the number of decoder layers to adapt to various scenarios without retraining. Our RT-DETR-R50 / R101 achieves 53.1% / 54.3% AP on COCO and 108 / 74 FPS on T4 GPU, outperforming previously advanced YOLOs in both speed and accuracy. We also develop scaled RT-DETRs that outperform the lighter YOLO detectors (S and M models). Furthermore, RT-DETR-R50 outperforms DINO-R50 by 2.2% AP in accuracy and about 21 times in FPS. After pre-training with Objects365, RT-DETR-R50 / R101 achieves 55.3% / 56.2% AP. The project page: this https URL.

This is the model card of a 🤗 transformers model that has been pushed on the Hub.

  • Developed by: Yian Zhao and Sangbum Choi
  • Funded by: National Key R&D Program of China (No.2022ZD0118201), Natural Science Foundation of China (No.61972217, 32071459, 62176249, 62006133, 62271465), and the Shenzhen Medical Research Funds in China (No. B2302037).
  • Shared by: Sangbum Choi
  • Model type: RT-DETR
  • License: Apache-2.0

Model Sources

  • HF Docs: RT-DETR
  • Repository: https://github.com/lyuwenyu/RT-DETR
  • Paper: https://arxiv.org/abs/2304.08069
  • Demo: RT-DETR Tracking

How to Get Started with the Model

Use the code below to get started with the model.

import torch
import requests

from PIL import Image
from transformers import RTDetrForObjectDetection, RTDetrImageProcessor

url = 'http://images.cocodataset.org/val2017/000000039769.jpg' 
image = Image.open(requests.get(url, stream=True).raw)

image_processor = RTDetrImageProcessor.from_pretrained("PekingU/rtdetr_r101vd_coco_o365")
model = RTDetrForObjectDetection.from_pretrained("PekingU/rtdetr_r101vd_coco_o365")

inputs = image_processor(images=image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)

results = image_processor.post_process_object_detection(outputs, target_sizes=torch.tensor([image.size[::-1]]), threshold=0.3)

for result in results:
    for score, label_id, box in zip(result["scores"], result["labels"], result["boxes"]):
        score, label = score.item(), label_id.item()
        box = [round(i, 2) for i in box.tolist()]
        print(f"{model.config.id2label[label]}: {score:.2f} {box}")

This should output

sofa: 0.97 [0.14, 0.38, 640.13, 476.21]
cat: 0.96 [343.38, 24.28, 640.14, 371.5]
cat: 0.96 [13.23, 54.18, 318.98, 472.22]
remote: 0.95 [40.11, 73.44, 175.96, 118.48]
remote: 0.92 [333.73, 76.58, 369.97, 186.99]

Training Details

Training Data

The RTDETR model was trained on COCO 2017 object detection, a dataset consisting of 118k/5k annotated images for training/validation respectively.

Training Procedure

We conduct experiments on COCO and Objects365 datasets, where RT-DETR is trained on COCO train2017 and validated on COCO val2017 dataset. We report the standard COCO metrics, including AP (averaged over uniformly sampled IoU thresholds ranging from 0.50-0.95 with a step size of 0.05), AP50, AP75, as well as AP at different scales: APS, APM, APL.

Preprocessing

Images are resized to 640x640 pixels and rescaled with image_mean=[0.485, 0.456, 0.406] and image_std=[0.229, 0.224, 0.225].

Training Hyperparameters

  • Training regime:

Evaluation

Model #Epochs #Params (M) GFLOPs FPS_bs=1 AP (val) AP50 (val) AP75 (val) AP-s (val) AP-m (val) AP-l (val)
RT-DETR-R18 72 20 60.7 217 46.5 63.8 50.4 28.4 49.8 63.0
RT-DETR-R34 72 31 91.0 172 48.5 66.2 52.3 30.2 51.9 66.2
RT-DETR R50 72 42 136 108 53.1 71.3 57.7 34.8 58.0 70.0
RT-DETR R101 72 76 259 74 54.3 72.7 58.6 36.0 58.8 72.1
RT-DETR-R18 (Objects 365 pretrained) 60 20 61 217 49.2 66.6 53.5 33.2 52.3 64.8
RT-DETR-R50 (Objects 365 pretrained) 24 42 136 108 55.3 73.4 60.1 37.9 59.9 71.8
RT-DETR-R101 (Objects 365 pretrained) 24 76 259 74 56.2 74.6 61.3 38.3 60.5 73.5

Model Architecture and Objective

Overview of RT-DETR. We feed the features from the last three stages of the backbone into the encoder. The efficient hybrid encoder transforms multi-scale features into a sequence of image features through the Attention-based Intra-scale Feature Interaction (AIFI) and the CNN-based Cross-scale Feature Fusion (CCFF). Then, the uncertainty-minimal query selection selects a fixed number of encoder features to serve as initial object queries for the decoder. Finally, the decoder with auxiliary prediction heads iteratively optimizes object queries to generate categories and boxes.

Citation

BibTeX:

@misc{lv2023detrs,
      title={DETRs Beat YOLOs on Real-time Object Detection},
      author={Yian Zhao and Wenyu Lv and Shangliang Xu and Jinman Wei and Guanzhong Wang and Qingqing Dang and Yi Liu and Jie Chen},
      year={2023},
      eprint={2304.08069},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Model Card Authors

Sangbum Choi
Pavel Iakubovskii

Magnet link (secondary — no webseeds)

Opens the swarm directly, but carries no webseed url-list. Prefer the.torrent download above — HTTP fallback seeds ride inside it.

magnet:?xt=urn:btih:5983f678af2a1b2a454aad74caee9d0ff4c6ee99&dn=PekingU_rtdetr_r101vd_coco_o365

Open magnet in torrent client · infohash 5983f678af2a1b2a454aad74caee9d0ff4c6ee99

Files & hashes

PathSizeMethodHash
README.md8.9 KB (9,124 B)sha1-git-blobc1335d4d91b44a9f47934749ffcb080213e02946
config.json5.1 KB (5,172 B)sha1-git-blobfb8b7fcfda4d3a3a70b3b56571e7fd767fd1daaa
model.safetensors293.1 MB (307,331,000 B)sha256-lfs48681f4087d220273d86b052001e19b738d1d1e54f02dfe98d71f4e7957458c5
preprocessor_config.json841 B (841 B)sha1-git-blob0eaa5c051317a3725f47218ae30b6e654f0ece36

Provenance

Upstream repositoryPekingU/rtdetr_r101vd_coco_o365
Revision (pinned)ff44b69152a72cc752677665fb4539507d56a99d
Fetched at2026-08-24T11:56:14Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

Webseeds