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

rtdetr_v2_r34vd

Date: 2026-11-15Commit: 5d60d8fSigned: 2DC28CC7B26A283B ✓

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

31M params126MBrtdetr_v2_r34vdsafetensorspermissive
FactsParams31MSize126 MBFormatssafetensorsTaskobject detectionLicenseApache-2.0From sourcepermissive
$ fw get PekingU/rtdetr_v2_r34vd
# manifest sha256 302874bce842… · 126 MB · 5 files
$ fw verify ./rtdetr_v2_r34vd PekingU/rtdetr_v2_r34vd
From sourceHosted (signed)PekingU/rtdetr_v2_r34vdLast check: 2026-11-15 03:37 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
126 MB
Weights
126 MB (safetensors)
Parameters
31M
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 03:37 UTCpassed

Model card

From the publisher at commit 5d60d8f. Shown as plain text with links; images open at the publisher.

RT-DETRv2#

Overview#

The RT-DETRv2 model was proposed in RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer by Wenyu Lv, Yian Zhao, Qinyao Chang, Kui Huang, Guanzhong Wang, Yi Liu. RT-DETRv2 refines RT-DETR by introducing selective multi-scale feature extraction, a discrete sampling operator for broader deployment compatibility, and improved training strategies like dynamic data augmentation and scale-adaptive hyperparameters. These changes enhance flexibility and practicality while maintaining real-time performance.

This model was contributed by @jadechoghari with the help of @cyrilvallez and @qubvel-hf

This is

Performance#

RT-DETRv2 consistently outperforms its predecessor across all model sizes while maintaining the same real-time speeds.

Image: rt-detr-v2-graph.png

How to use#
import torch
import requests

from PIL import Image
from transformers import RTDetrV2ForObjectDetection, 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_v2_r34vd")
model = RTDetrV2ForObjectDetection.from_pretrained("PekingU/rtdetr_v2_r34vd")

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.height, image.width)]), threshold=0.5)

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}")
cat: 0.97 [341.14, 25.11, 639.98, 372.89]
cat: 0.96 [12.78, 56.35, 317.67, 471.34]
remote: 0.95 [39.96, 73.12, 175.65, 117.44]
sofa: 0.86 [-0.11, 2.97, 639.89, 473.62]
sofa: 0.82 [-0.12, 1.78, 639.87, 473.52]
remote: 0.79 [333.65, 76.38, 370.69, 187.48]
Training#

RT-DETRv2 is trained on COCO (Lin et al. [2014]) train2017 and validated on COCO val2017 dataset. We report the standard AP metrics (averaged over uniformly sampled IoU thresholds ranging from 0.50 − 0.95 with a step size of 0.05), and APval50 commonly used in real scenarios.

Applications#

RT-DETRv2 is ideal for real-time object detection in diverse applications such as autonomous driving, surveillance systems, robotics, and retail analytics. Its enhanced flexibility and deployment-friendly design make it suitable for both edge devices and large-scale systems + ensures high accuracy and speed in dynamic, real-world environments.

Files

5 files · 126 MBWeights 126 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.54 KB3051f9be49a3581160e86b0e361ca0b839eb844f93b5283569d49ef1460506b1
config.json5.38 KB9315791fc96f2e1014d98c44485c1aeaea282f6093f29dc2fb249af3fd57ef75
model.safetensors126 MBd67528a6c4bbaece03d65feefbba94052894aa6520aa1f65c083cd0f7b92d612
preprocessor_config.json444 Bcd38cd59999e7a95d68e487fbe5132df3d4e5c32a0836add57e6126ba0c4eaf1
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5d60d8fb5e pinned now2026-11-15 03:37 UTC5 files · 126 MB

Use it

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

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
3051f9be49a3581160e86b0e361ca0b839eb844f93b5283569d49ef1460506b1
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_v2_r34vdDate: 2026-11-15Commit: 5d60d8fSigned: 2DC28CC7B26A283B ✓
Upstream
PekingU/rtdetr_v2_r34vd
Pinned commit
5d60d8fb5eb2a3ee5575bf200ecbce4e2cfa420c
Manifest
rtdetr_v2_r34vd.json · .minisig
Manifest sha256
302874bce842a50ac4261cf5aa5be5d6b42d3f8eefd1f827f6ba56c9db721665
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:37 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/PekingU/rtdetr_v2_r34vd.json $ curl -O https://freeweights.allternit.com/manifests/PekingU/rtdetr_v2_r34vd.json.minisig $ minisign -Vm rtdetr_v2_r34vd.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_v2_r34vd
Open in Freeweights Studio

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

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

Variants

1 quantized or adapter build of rtdetr_v2_r34vd. 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