alt.freeweights.vision / rtdetr_r50vd_coco_o365
From: PekingU <huggingface.co/PekingU>Newsgroups: alt.freeweights.visionSubject:

rtdetr_r50vd_coco_o365

Date: 2026-11-15Commit: 457857cSigned: 2DC28CC7B26A283B ✓

Object detection model with 43M parameters. Safetensors weights, 172 MB in all. Published by PekingU under Apache-2.0.

43M params172MBrtdetr_r50vd_coco_o365safetensorspermissive
FactsParams43MSize172 MBFormatssafetensorsTaskobject detectionLicenseApache-2.0From sourcepermissive
$ fw get PekingU/rtdetr_r50vd_coco_o365
# manifest sha256 64469b550364… · 172 MB · 5 files
$ fw verify ./rtdetr_r50vd_coco_o365 PekingU/rtdetr_r50vd_coco_o365
From sourceHosted (signed)PekingU/rtdetr_r50vd_coco_o365Last check: 2026-11-15 02:29 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
172 MB
Weights
172 MB (safetensors)
Parameters
43M
Formats
safetensors
Task
object detection
License
Apache-2.0 (permissive)
Files
5, each with a sha256
Publisher
PekingU
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:29 UTCpassed

Model card

From the publisher at commit 457857c. Shown as plain text with links; images open at the publisher.

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#

Image: image/png

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#

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_r50vd_coco_o365")
model = RTDetrForObjectDetection.from_pretrained("PekingU/rtdetr_r50vd_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:

Image: image/png

Evaluation#

Model#Epochs#Params (M)GFLOPsFPS_bs=1AP (val)AP50 (val)AP75 (val)AP-s (val)AP-m (val)AP-l (val)
RT-DETR-R18722060.721746.563.850.428.449.863.0
RT-DETR-R34723191.017248.566.252.330.251.966.2
RT-DETR R50724213610853.171.357.734.858.070.0
RT-DETR R10172762597454.372.758.636.058.872.1
RT-DETR-R18 (Objects 365 pretrained)60206121749.266.653.533.252.364.8
RT-DETR-R50 (Objects 365 pretrained)244213610855.373.460.137.959.971.8
RT-DETR-R101 (Objects 365 pretrained)24762597456.274.661.338.360.573.5
Model Architecture and Objective#

Image: image/png

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

Files

5 files · 172 MBWeights 172 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md9.12 KB12e57eb218584dff63ae2074f4a7d7710125319b48cabddd4436f1a414ac733b
config.json5.11 KB2ed2a305c51eef46715eb755a02b2a266ecfb752936cc9574bb5714601c2742d
model.safetensors172 MB59abc0b00bea0cc8f7e9ce053c29189a348605bb337123609a7fe02e4ea830a0
preprocessor_config.json841 Bffb4b9461a1dad746be8f0f9c8330ed7743a1ba5fba4f75c232cd281b3d4c64a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
457857cec8 pinned now2026-11-15 02:29 UTC5 files · 172 MB

Use it

$ fw get PekingU/rtdetr_r50vd_coco_o365
# manifest sha256 64469b550364… · 172 MB · 5 files
$ fw verify ./rtdetr_r50vd_coco_o365 PekingU/rtdetr_r50vd_coco_o365
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/PekingU/rtdetr_r50vd_coco_o365.json --dir ./rtdetr_r50vd_coco_o365 $ python3 fw.py verify ./rtdetr_r50vd_coco_o365 ./PekingU__rtdetr_r50vd_coco_o365.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download PekingU/rtdetr_r50vd_coco_o365 --revision 457857cec8ac28ddede40ecee9eed2beca321af8 --local-dir ./rtdetr_r50vd_coco_o365

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
12e57eb218584dff63ae2074f4a7d7710125319b48cabddd4436f1a414ac733b
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: PekingU <huggingface.co/PekingU>Newsgroups: alt.freeweights.visionSubject: rtdetr_r50vd_coco_o365Date: 2026-11-15Commit: 457857cSigned: 2DC28CC7B26A283B ✓
Upstream
PekingU/rtdetr_r50vd_coco_o365
Pinned commit
457857cec8ac28ddede40ecee9eed2beca321af8
Manifest
rtdetr_r50vd_coco_o365.json · .minisig
Manifest sha256
64469b5503646b02b6030c888de11c1c526997ff3f5c8de8036eeca1e26810ae
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:29 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/PekingU/rtdetr_r50vd_coco_o365.json $ curl -O https://freeweights.allternit.com/manifests/PekingU/rtdetr_r50vd_coco_o365.json.minisig $ minisign -Vm rtdetr_r50vd_coco_o365.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download PekingU/rtdetr_r50vd_coco_o365
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. rtdetr_r50vd_coco_o365.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of rtdetr_r50vd_coco_o365. Each has its own license check and page.

From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX