veilq-face-verify-v1
A small second-stage verifier for veilq, a local tool that finds and redacts personal data. veilq finds faces with YuNet (OpenCV Zoo, MIT) and fills them black. YuNet also fires, weakly, on things that are no face at all (an app icon, a thumb, a detail of a photo). This model is asked about such weak boxes only and may say "no face"; every other box is filled as before.
It never tells whose a face is: it has three classes, nothing else, and no features of a face leave it.
Use
- Input
input:[1, 3, 112, 112]float, RGB. The crop is YuNet's box grown by 15 % on every side (as veilq fills it), stretched to 112 x 112, scaled to 0..1, then normalised with mean[0.485, 0.456, 0.406]and std[0.229, 0.224, 0.225]. - Output
logits:[1, 3], no softmax, in the orderphoto_face,drawn_face,no_face. - How veilq uses it: only for YuNet boxes with a score below 0.8; a box
is left unfilled only when the softmax of
no_faceis at least 0.9532. A drawn face counts as a face (a caricature can show a real person); smileys, emoji, icons, logos, hands are no face.
Training
Fine-tuned from timm/mobilenetv3_small_100.lamb_in1k (revision
76b303ec28c466e9df37f4745dfb7aef20ab87ae, Apache-2.0; ImageNet-pretrained,
whose own terms of use are a residual note) on synthetic data only, no
picture of a real person:
- faces of invented people generated with FLUX.1-schnell (Apache-2.0), and heads rendered with Blender from MakeHuman/MPFB assets (CC0 assets; skins with another licence left out);
- procedurally drawn cartoon faces;
- procedural icons, logos, smileys, UI elements, hands generated without a person in frame, and details of CC0/public-domain photos from Wikimedia Commons that were reviewed by eye to hold no person, face or handwriting;
- all composited into news cards, feeds, book covers and TV stills with caption bars, tickers and overlays across faces, then read with YuNet the way veilq reads a picture.
About 74,000 training crops; validation and test from held-out assets, prompts, styles and seeds. Best epoch 8 of 15 (AdamW, lr 3e-4, EMA), chosen on validation only.
Measured
At the threshold 0.9532 (chosen on validation):
| Validation | Test | |
|---|---|---|
| Faces kept (all crops) | 0.9990 | 0.9995 |
| No-face crops vetoed | 0.78 | 0.77 |
| Highest P(no_face) of a face, YuNet's own boxes | 0.625 | 0.415 |
| Faces with an overlay across them kept | all | all |
On a real news screenshot (checked locally, never stored): an app icon and a thumb vetoed, every real face, also a large one under a caption line, kept.
Limits
- Trained on synthetic faces; a real face of an unusual kind may score
higher for
no_face. veilq therefore asks it only about weak boxes and keeps filling everything else. - Photo details are vetoed least often (about half); a false box there stays filled, which costs a black box, not personal data.
Licence
Apache-2.0, as the base model.
Model tree for nuetzliches/veilq-face-verify-v1
Base model
timm/mobilenetv3_small_100.lamb_in1k