Downloads · 30 days
171
11% of all-time downloads
autolane/rfdetr-alpr
rfdetr-alpr is a object detection model from autolane. Use it when you need objects located in an image. It is set up for tensorrt. The card lists the license as apache-2.0.
A fine-tuned RF-DETR Medium model for license plate detection, optimized for edge deployment.
Downloads · 30 days
171
11% of all-time downloads
All-time downloads
1.6K
Public
Repo size
431 MB
Likes
0
Public
Click a slice to open those files.
.onnx279 MB · 65%
From the Hugging Face model README
A fine-tuned RF-DETR Medium model for license plate detection, optimized for edge deployment.
| File | Format | Size | Use Case |
|---|---|---|---|
rfdetr_alpr.onnx | ONNX | 117MB | Cross-platform inference |
rfdetr_alpr_optimized.onnx | ONNX (optimized) | 115MB | Optimized for TensorRT |
rfdetr_alpr_int8.onnx | ONNX INT8 | 34MB | Edge inference (ARM/NPU) |
license_plate_detector_fp16.engine | TensorRT FP16 | 64MB | GPU inference (balanced) |
license_plate_detector_int8.engine | TensorRT INT8 | 82MB | GPU inference (fastest) |
calibration.cache | Calibration data | 103KB | INT8 calibration cache |
.engine) for fastest inferenceimport onnxruntime as ort
import numpy as np
session = ort.InferenceSession("rfdetr_alpr_optimized.onnx")
# Input: (1, 3, 576, 576) normalized to [0, 1]
outputs = session.run(None, {"images": input_tensor})
boxes, scores = outputs[0], outputs[1]
import tensorrt as trt
import pycuda.driver as cuda
# Load engine
with open("license_plate_detector_int8.engine", "rb") as f:
engine = trt.Runtime(trt.Logger()).deserialize_cuda_engine(f.read())
For ARM/edge devices without NVIDIA GPU:
import onnxruntime as ort
# Use INT8 quantized model for edge deployment
session = ort.InferenceSession(
"rfdetr_alpr_int8.onnx",
providers=['CPUExecutionProvider'] # or platform-specific NPU provider
)
# Input: (1, 3, 576, 576) with ImageNet normalization
outputs = session.run(None, {"images": input_tensor})
boxes, scores = outputs[0], outputs[1]
Apache 2.0 (same as RF-DETR)