RT-DETRv2 r18vd license-plate detector (ONNX, patched for WebGPU)
License-plate detector used by redact-web to find vehicle registration plates to redact, in the browser.
- Upstream: https://huggingface.co/Topurrra/rtdetr-license-plate-detection-onnx (
plate_rtdetr.onnx), at commitaecb24a78e31cea03f59b83156d55dde84f20d94. - License: Apache-2.0, the same as upstream (copy in
LICENSE). - Training data: fine-tuned on the Open Images V7 "Vehicle registration plate" class, per the upstream model card.
Our modifications
Built by tools/models/plate/export.py:
- The upstream graph's SHA-256 is checked, then its 3
AveragePoolnodes withceil_mode=1are set toceil_mode=0, because onnxruntime-web's WebGPU backend rejectsceil_mode=1. At a 640x640 input every pooled map is even-sized, so ceil and floor give the same shapes. - An fp16 copy that keeps float32 inputs and outputs.
- No weights are changed.
Files
| File | Description |
|---|---|
onnx/model.onnx |
fp32 graph, input pixel_values float32 [1, 3, 640, 640] |
onnx/model_fp16.onnx |
fp16 graph with float32 inputs and outputs |
redact-web pins this repository at a commit and verifies every file's SHA-256 before use.