RT-DETRv2-R18-vd โ€” ONNX

ONNX export of PekingU/rtdetr_v2_r18vd, the ResNet-18 vd variant of RT-DETRv2 (Real-Time DEtection TRansformer v2) trained on COCO (80 classes). Licensed under Apache-2.0, providing a commercially permissive, non-copyleft alternative to AGPL-licensed YOLOv8 and YOLO26 models.

Mirrored for use with inference4j, an inference-only AI library for Java.

Original Source

Usage with inference4j

try (RtDetr model = RtDetr.fromPretrained("inference4j/rtdetr-v2-r18vd")) {
    List<Detection> detections = model.detect(Path.of("street.jpg"));
    detections.forEach(d -> System.out.printf("%s (%.0f%%) at [%.0f, %.0f, %.0f, %.0f]%n",
        d.label(), d.confidence() * 100,
        d.box().x1(), d.box().y1(), d.box().x2(), d.box().y2()));
}

Model Details

Property Value
Architecture RT-DETRv2 ResNet-18 vd (transformer object detector)
Task Object detection (COCO 80 classes)
License note Apache-2.0 (permissive non-AGPL alternative to YOLOv8/YOLO26)
Input pixel_values: [batch, 3, 640, 640] โ€” RGB, normalized 0-1 (bilinear resize, no letterbox)
Output logits: [batch, 300, 80] (raw logits, apply sigmoid) and pred_boxes: [batch, 300, 4] (normalized [cx, cy, w, h])
Post-processing Convert [cx, cy, w, h] to [x1, y1, x2, y2] scaled to image dimensions; filter by score threshold (> 0.5). No NMS required.
Original framework PyTorch (PekingU / Baidu RT-DETR)

License

This model is licensed under the Apache License 2.0. Original model by Peking University / Baidu, hosted by PekingU and converted by onnx-community.

Downloads last month
19
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support