PekingU_rtdetr_v2_r18vd
PekingU · View on Hugging Face ↗
RT-DETR v2 (ResNet-18) — real-time object detection on COCO classes.
✓ verified · rehash-vs-hf-metadata at 2026-08-24T12:17:29Z
apache-2.077.2 MB (80,914,063 bytes)transformerssafetensorsrt_detr_v2object-detectionvisionendpoints_compatible1 language (en)paper: 2407.17140
Get this model
Download PekingU_rtdetr_v2_r18vd.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:
- en pipeline_tag: object-detection tags:
- object-detection
- vision datasets:
- coco widget:
- src: >- https://huggingface.co/datasets/mishig/sample_images/resolve/main/savanna.jpg example_title: Savanna
- src: >- https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg example_title: Football Match
- src: >- https://huggingface.co/datasets/mishig/sample_images/resolve/main/airport.jpg example_title: Airport
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.
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_r18vd")
model = RTDetrV2ForObjectDetection.from_pretrained("PekingU/rtdetr_v2_r18vd")
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.
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:09c6e3153226d39310300768f1cc0ff5f382423e&dn=PekingU_rtdetr_v2_r18vdOpen magnet in torrent client · infohash 09c6e3153226d39310300768f1cc0ff5f382423e
Files & hashes
| Path | Size | Method | Hash |
|---|---|---|---|
| README.md | 3.5 KB (3,542 B) | sha1-git-blob | 37d358fb4e1d91881c4081fc8df0b75d0c2cd99e |
| config.json | 5.3 KB (5,437 B) | sha1-git-blob | 6f984c30c65857419deeeebfdf7dc4e7d7bce6f8 |
| model.safetensors | 77.2 MB (80,904,640 B) | sha256-lfs | d18309d0d7ea57048138885c4c6ecfcb1e24506fc6153b94ad484f8ab62c7115 |
| preprocessor_config.json | 444 B (444 B) | sha1-git-blob | fcdff16b42e5ebc51d28f59184490c6eff91a88b |
Provenance
| Upstream repository | PekingU/rtdetr_v2_r18vd |
|---|---|
| Revision (pinned) | 5650961749fa93567c0d46fc7f43ea4f9e914107 |
| Fetched at | 2026-08-24T12:17:23Z |
| License at fetch | apache-2.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce