YOLOS-tiny signature detection, ONNX
An ONNX conversion of mdefrance/yolos-tiny-signature-detection
at revision b788cf7376464453c3dea1e5ee8589adcaa0c634. The weights are
unchanged; only the format is. It finds handwritten signatures in document
images.
It is the signature detector of veilq
(ADR-0048), which fills the signatures it finds black. veilq pins this file
by its SHA-256 and fetches it with veilq models fetch signature.
Model
- Input
pixel_values: float32[1, 3, 640, 640], RGB scaled to 0..1, normalised with mean[0.485, 0.456, 0.406]and deviation[0.229, 0.224, 0.225], the picture resized to 640 x 640. - Outputs
logits:[1, 100, 2](signature, nothing; softmax), andpred_boxes:[1, 100, 4](centre x, centre y, width, height as shares of the input). - Opset 17. SHA-256 of
model.onnx:d6d5bf2b9ddba9888e77846507a3da90bfd11b113a9556deaebaf132a42a5f7c.
How it was made
scripts/export-signature-model.py in the veilq repository, with torch
2.15.0 (CPU) and transformers 4.57.6. The export is reproducible: the same
versions give the same file.
Origin and licence
- Base model:
mdefrance/yolos-tiny-signature-detection, Apache-2.0, fine-tuned fromhustvl/yolos-tinyontech4humans/signature-detection(built from Tobacco800 and Roboflowsignatures-xc8up). See the base model's card for its training, evaluation and limits. - This conversion: Apache-2.0 (see
LICENSE). Changes: the PyTorch weights converted to ONNX; nothing else.
Limits
Measured by veilq on synthetic letters and screenshots: it finds most handwritten signatures, and takes large diagonal watermark text for a signature (nuetzliches/veilq#80). It finds where a signature is; it does not verify or compare signatures.