YOLO26n Face Detector · 320×320 · Medium/Large Targets First
A single-class face-detection model. Input is fixed at 320×320; the output is one bounding box + confidence per face. The class label stored inside the weights is head — a name inherited from the training data, while the boxes cover the face region (see §4).
Built from Ultralytics YOLO26n: the smallest detection branch (P3) was removed, keeping only medium- and large-size detection capability in exchange for lower compute and faster inference. It was trained on the full annotation set — no bounding boxes were discarded.
Good for: video conferencing, close-range access control, live-stream frames, phone front cameras — any scene where faces occupy 2% or more of the frame. Not for: long-range surveillance, dense crowds from the air, ID-photo thumbnails (targets too small; this model does not detect them — see §5).
1. Running it in 5 lines
pip install ultralytics onnxruntime opencv-python # Python 3.10+
python inference.py --source /path/to/images --out results.csv
from ultralytics import YOLO
model = YOLO('head320_yolo26n_full2h_best.pt') # class names are fixed to {0: 'head'}
results = model.predict('photo.jpg', imgsz=320, conf=0.25)
for box in results[0].boxes:
print(box.xyxy.tolist(), float(box.conf)) # x1, y1, x2, y2 + confidence
imgszmust be 320. That is the training resolution. Changing it to 640 badly degrades accuracy (measured mAP50-95 drops from 0.930 to 0.686 — see §9).
Demo images
Each panel is one image: the output of head320_yolo26n_full2h_best.pt, the number on the box is the confidence. Params: imgsz=320, conf=0.25, iou=0.5, run on CPU with ultralytics 8.4.211 — no cherry-picking, no post-processing.

images · 566×542 · 1 face · box covers 11.0% of the frame · conf 0.954

images-1 · 678×452 · 1 face · box covers 19.2% of the frame · conf 0.941

images-9 · 407×491 · 1 face · box covers 29.9% of the frame · conf 0.960
Every image holds exactly one face. Re-running the same three images at
conf=0.05returned exactly one box each, so no panel is hiding a second candidate behind the threshold. The box-to-frame ratios (11%–30%) sit inside the range this model was trained for — see §5.
2. Glossary (start here if anything is unclear)
| Term | Meaning |
|---|---|
| P3 / P4 / P5 | Names for the three feature levels produced by the backbone. P3 is 1/8 resolution (small-object sensitive), P4 is 1/16 (medium objects), P5 is 1/32 (large objects). The larger the number, the smaller the feature map, the wider the receptive field, the coarser the detail |
| Detect head | The final layer of the network, which emits boxes on a feature map of a given scale. Standard YOLO26n has 3 (P3+P4+P5); this model has 2 (P4+P5) |
| Removing the P3 branch | Not merely deleting the P3 detect head — the entire path leading to P3 (upsample, concat, conv) is removed too. Deleting only the head saves about 2.5% compute (1.450 → 1.414 GFLOPs @320); deleting the whole branch saves 17.5% (1.450 → 1.196). After BN fusion the same comparison reads 1.2% and 17.5%. Full comparison in §3.1 |
| mAP50 | Mean average precision at IoU 0.5. A box that is "roughly right" counts as correct. Max is 1 |
| mAP50-95 | mAP averaged over IoU thresholds from 0.5 to 0.95 in 0.05 steps. Much stricter than mAP50 — this is the primary metric. Max is 1 |
| IoU | Overlap of two boxes = intersection area ÷ union area. 1 means perfect overlap |
| P (Precision) | Of the boxes the model reports, how many are real. High P = few false positives |
| R (Recall) | Of the faces actually present in the image, how many the model found. High R = few misses |
| conf (confidence threshold) | Only boxes above this score are kept. Lower → recall↑, false positives↑; higher → the opposite. This repo defaults to 0.25 |
| NMS (non-maximum suppression) | Post-processing: when the same face is emitted as several overlapping boxes, only the highest-scoring one survives. Raw ONNX output must go through this step, otherwise one face yields a dozen boxes (see §7) |
| GFLOPs | Floating-point operations per forward pass (billions). Measures compute / power draw and is strongly resolution-dependent — the same model can differ 4× between 320 and 640 |
| Size-bucket recall | Recall computed separately per ground-truth area bucket. Overall metrics get swamped by the majority of large objects, so bucketing is what reveals small/medium/large behaviour |
| tiny / mid / large | This model's bucket definition, based on ground-truth box area as a fraction of the whole image: tiny < 2% (i.e. smaller than 45×45 px at 320), mid 2–10%, large > 10%. Earlier docs used a finer 0.4% split; this repo standardises on 2% |
| Paired bootstrap | A statistical test: 1,000 bootstrap resamples (with replacement, at image level) of the validation set produce a 95% confidence interval (CI) for metric differences. If the CI crosses 0, the difference may just be sampling noise — i.e. not significant. Every "significant / not significant" claim in this repo comes from this test |
| pp (percentage point) | 0.9485 → 0.9278 is a drop of 2.08pp (not 2.08%) |
| b1 / b8 / b32 / b64 | How many images per inference (batch size). b1 = one at a time, highest latency; larger batches lower average per-image latency |
| ms/image | Average time per image, including the full predict path (pre-processing + inference + post-processing) |
| end2end / one2one vs one2many | YOLO's internal naming for two target-assignment schemes. With end2end=True the network emits already-sorted boxes (NMS-free); with end2end=False it emits raw candidate boxes that need external NMS. This model was trained in end2end=False mode (consequences in §7) |
| ONNX / opset | A cross-framework model exchange format / its operator version number. Useful for deployment without PyTorch |
| Fusion (fuse) | Merging convolutions and BatchNorm into a single convolution before inference — faster with identical results. Fused parameter counts are smaller (BN statistics are absorbed into the convolutions) |
| seed / deterministic | Random seed / forced determinism. A fixed seed is required to reproduce the same training result |
3. Conclusions
3.1 Model size and compute
| Metric | This model (2 heads) | 3-head version | Change |
|---|---|---|---|
| Parameters (full weights) | 2,535.7 K | 2,533.9 K | +0.07% (effectively unchanged) |
| Parameters (after BN fusion, as used at inference) | 2,308,178 | 2,389,735 | −3.4% |
| Compute @320 (BN-fused, the real inference figure) | 1.076 GFLOPs | 1.320 GFLOPs | −18.5% |
| Compute @320 (unfused, BN layers counted) | 1.196 GFLOPs | 1.484 GFLOPs | −19.4% |
| Compute @640 (BN-fused) | 4.40 GFLOPs | 5.37 GFLOPs | −18.2% |
⚠️ Three easy-to-miss unit traps:
- The "4.4 GFLOPs" printed in the Ultralytics training log is computed at 640 input, not 320. Every @320 number here was measured separately with
get_flops(model, imgsz=320). Mixing the two is the single most common source of errors in this write-up.- Fusion changes FLOPs by ~11%: once BN is absorbed into the convolutions, its FLOPs are no longer counted separately. Same model: 1.196 unfused / 1.076 fused.
- Parameter count also drops after fusion (2.54M → 2.31M), because BN's four parameters disappear. The "parameters roughly unchanged, +0.07%" conclusion therefore only holds in the unfused convention.
3.2 Accuracy (validation counts only GT boxes ≥2%: 5,797 images / 5,885 boxes)
This work ran a 2×2 controlled experiment covering two variables simultaneously — training labels (full vs. tiny boxes removed) and number of detect heads (2 vs. 3). All four configurations have to be compared against each other, otherwise you cannot tell whether an accuracy change came from the labels or from the architecture. The table below names each configuration by labels · heads rather than by script codename:
| Configuration (labels · heads) | Description | Weight file |
|---|---|---|
| Full labels · 2 heads | ← this model (the deliverable) | head320_yolo26n_full2h_best.pt |
| Tiny boxes removed · 2 heads | Labels changed, architecture unchanged → isolates the effect of removing tiny boxes | Reproduce it yourself; not published here |
| Full labels · 3 heads | Architecture changed, labels unchanged → isolates the effect of removing P3 | wesjos/yolo-face-nano-fast:yolo26n-face320.pt |
| Tiny boxes removed · 3 heads | Both variables reverted → control baseline | Reproduce it yourself; not published here |
What "tiny boxes removed" means: at training time, annotation boxes smaller than 2% of the frame (below 45×45 px at 320) were deleted from the labels while the images were kept (1,030 of 24,575 boxes removed, 4.19%). This was the model's early approach and was ultimately rejected — see §3.3.
Full results on the same validation set, with imgsz=320, conf=0.25, IoU=0.5:
| Configuration (labels · heads) | P | R | mAP50 | mAP50-95 | mid recall (2–10%) | large recall (>10%) |
|---|---|---|---|---|---|---|
| Full labels · 2 heads (this model) | 0.9907 | 0.9873 | 0.9947 | 0.9298 | 0.9485 | 0.9977 |
| Tiny removed · 2 heads | 0.9961 | 0.9922 | 0.9949 | 0.9297 | 0.9278 | 0.9979 |
| Full labels · 3 heads | 0.9854 | 0.9849 | 0.9944 | 0.9263 | 0.9416 | 0.9977 |
| Tiny removed · 3 heads | 0.9940 | 0.9927 | 0.9949 | 0.9286 | 0.9107 | 0.9975 |
How to read this table:
- The four configurations have essentially identical mAP50 (0.9944–0.9949) and mAP50-95 squeezed into 0.926–0.930.
- The only difference shows up in mid-bucket recall: this model is highest at 0.9485, "tiny removed · 3 heads" is lowest at 0.9107 — a gap of 3.78pp.
- The reason is in §3.4: the validation set has 5,594 large boxes (95% of the total), which dilutes the difference on the 291 mid boxes inside the global mAP. Looking only at mAP would lead you to wrongly conclude the four configurations are equivalent.
3.3 Statistical test on mid-target recall (the decisive result)
The mid bucket was tested separately with a paired bootstrap (1,000 resamples, image-level). Each row below changes exactly one variable relative to its comparison, so the difference is attributable:
| Comparison | What changed | mid recall change | 95% CI | Verdict |
|---|---|---|---|---|
| This model − "tiny removed · 3 heads" | Labels + architecture | +3.82pp | [+1.67, +6.30] | significant |
| This model − "tiny removed · 2 heads" | Labels only (2 heads both) | +2.08pp | [+0.68, +3.85] | significant |
| "Full labels · 3 heads" − "tiny removed · 3 heads" | Labels only (3 heads both) | +3.09pp | [+1.34, +5.14] | significant |
| This model − "full labels · 3 heads" | Architecture only (labels same) | +0.73pp | [−0.38, +2.22] | not significant |
| "Tiny removed · 2 heads" − "tiny removed · 3 heads" | Architecture only (labels same) | +1.73pp | [−0.00, +3.85] | not significant (borderline) |
| "Tiny removed · 2 heads" − "full labels · 3 heads" | Labels + architecture | −1.36pp | [−3.28, +0.37] | not significant |
For the same six comparisons, using global mAP50-95 instead, none is significant (every CI crosses 0).
Two conclusions that can actually drive a decision (both come from the three "one variable changed" rows above):
- Removing tiny boxes from the training set significantly hurts mid-target recall. Two independent comparisons agree: +2.08pp with 2 heads, +3.09pp with 3 heads. Small boxes are not noise — they provide effective supervision signal at the medium scale. This is why the "remove tiny boxes" approach was abandoned.
- Removing the P3 branch does not hurt mid-target recall. Both independent comparisons are non-significant: this model vs. full 3-head is +0.73pp (CI crosses 0), and 2-head vs. 3-head is +1.73pp (CI borderline, crosses 0). Meanwhile compute is 18.5% lower and single-frame latency is 21% faster. This is the core benefit of the architecture change.
3.4 Capability boundary: evaluated on the "full ground truth" convention (includes 261 tiny boxes <2%)
The §3.2 validation excluded GT boxes below 2% (they are outside this model's target range). But if you want to see the model's true capability on extremely small objects, evaluate on the full convention (5,797 images / 6,146 boxes):
| Configuration (labels · heads) | mAP50 | mAP50-95 | tiny <2% recall | mid 2–10% | large >10% |
|---|---|---|---|---|---|
| Full labels · 2 heads (this model) | 0.9848 | 0.9103 | 0.6858 | 0.9485 | 0.9977 |
| Full labels · 3 heads | 0.9930 | 0.9140 | 0.7471 | 0.9416 | 0.9977 |
| Tiny removed · 2 heads | 0.9629 | 0.8930 | 0.0575 | 0.9278 | 0.9979 |
- "Tiny removed · 2 heads" reaches only 5.75% recall on <2% boxes — those boxes were deleted during training, so that is a blind spot.
- This model recovers 68.6% with just 2 detect heads (even though it also has no P3 layer, because the tiny boxes during training supplied scale priors).
- "Full labels · 3 heads" is still best on extremely small faces (74.7%), but it is 21% slower per frame.
Selection guide:
| Your priority | Pick |
|---|---|
| Fastest, best accuracy on medium/large targets | This model (full labels · 2 heads) |
| Cannot miss even extremely small faces (<2% area) | Full labels · 3 heads → see wesjos/yolo-face-nano-fast:yolo26n-face320.pt |
| Want both tiny faces and low latency | Not trained here. You would need to retrain a configuration that keeps the full labels and keeps the P3 layer — see §9 |
Script codename mapping (only relevant if you want to reproduce; ignore it when reading): this model =
D_full2h, tiny removed · 2 heads =B_p3cut, full · 3 heads =C_full3h, tiny removed · 3 heads =A_ctrl. These four names come from theARMSdict in the training scripttrain_ml.py; the full mapping is in §8.
4. Training data
| Item | Value |
|---|---|
| Classes | 1 class: head |
| Train set | 23,150 images / 24,575 boxes (full — no boxes discarded) |
| Validation set | 5,797 images / 6,146 boxes |
| Train-set box area distribution | large >10%: 22,435 · mid 2–10%: 1,110 · tiny <2%: 1,030 |
| Validation-set box area distribution | large >10%: 5,594 · mid 2–10%: 291 · tiny <2%: 261 |
| Image size | 89.4% of the train set is natively 320×320 (174 distinct sizes); 88.8% of the validation set is 320×320. Training at 320 therefore involves essentially no resampling |
| Multi-object images | 5.57% (1,290 / 23,150); up to 6 faces per image → dense crowds are out of distribution |
| Box geometry | Face region: hairline / top of forehead → chin, excluding neck and back of head |
| Annotation source | Produced by an automatic detector, no per-box manual review |
| Train/val split | The dataset's official split; verified to contain no exact duplicate files (identical md5) |
Boundary of the box convention: the class is named
head, but the boxes actually cover the face region. If your downstream task needs a full head box (including neck and back of head), this model does not fit — you would need to re-annotate to that convention and retrain.
5. Where it works and where it does not
✅ Good fit
- Faces occupying ≥ 2% of the frame (roughly ≥45×45 px at 320) in close- or mid-range shots
- Video conferencing, close-range access control, live-stream frames, phone front cameras
- Real-time scenarios at the ~200 FPS single-frame level
❌ Not a fit
- Long-range surveillance, dense crowds, aerial imagery — targets are too small, they are rare in the training set (tiny is only 4.2%), and this model has no P3 layer. Use the 3-head version or tiled (tile) inference for these
- Downstream tasks needing a full head box (with neck and back of head) — the convention is the face region
- Dense crowd counting — 94% of training images contain a single face; multi-object images are only 5.6%
- Cross-domain generalisation to stylistically very different data — see known limitation 2 in §10
6. Latency (RTX 4090, full predict path, including pre-processing + inference + post-processing)
Measurement protocol: the model is fuse()d, then 300 warm-up iterations pull the GPU SM clock to steady state (2,520 MHz), then 120 samples are taken and the median is reported. Single machine, single process, single GPU (another resident ComfyUI instance occupies 15 GB of VRAM; its effect was excluded).
| batch | This model ms/image | This model FPS | 3-head version ms/image | 3-head version FPS | Speedup |
|---|---|---|---|---|---|
| 1 | 4.87 | 205 | 6.16 | 162 | 21% faster |
| 8 | 0.752 | 1,330 | 0.922 | 1,084 | 18% faster |
| 32 | 0.314 (see note) | — | 0.357 (see note) | — | — |
| 64 | 0.259 (see note) | — | 0.268 (see note) | — | — |
Note on batch 32 / 64: on this shared GPU, per-image latency at large batch sizes is bimodal (the same model with the same code oscillates between 0.30 ms and 0.44 ms; the jumps are independent of SM clock and are suspected to be MPS / scheduler preemption). The b32/b64 numbers are therefore not reproducible, and this table reports the faster stable value with a note. For deployment capacity planning, use b1 / b8 — those two were highly stable across 4 independent measurement rounds (b1's p10 differs from the median by only 0.7%).
Converting to throughput: 4.87 ms single-frame ≈ 205 FPS. At 30 fps per video stream that is theoretically 6.8 streams at full load; keeping a 2× compute headroom (the recommended practice) leaves about 3–4 streams.
7. File manifest
| File | Size | Description |
|---|---|---|
head320_yolo26n_full2h_best.pt | 5.38 MB | Main weights. Optimizer/scheduler state stripped (inference only — cannot resume training), class names {0: 'head'} |
head320_yolo26n_full2h_best.onnx | 9.34 MB | ONNX opset 17, fixed input [1, 3, 320, 320], output [1, 5, 500]. See the ⚠️ below |
inference.py | — | Standalone inference script supporting both .pt and --onnx modes, no code changes needed |
metrics.json | — | All raw metrics: the four-configuration matrix, bootstrap, full-convention evaluation, latency, export verification |
demo/*.jpg | 3 files | The demo panels above — model output on a 420×420 canvas |
README.md | — | This file |
⚠️ Two things you must know when using ONNX
1. The ONNX output is raw candidate boxes — you must run NMS yourself.
The output shape is [1, 5, 500]: 500 candidate boxes, each with 5 numbers: [cx, cy, w, h, score] (coordinates in the 320×320 input space, not mapped back to the original image).
This model was trained in end2end=False mode, so the same face appears in several adjacent candidate boxes. Measured on one image:
Raw candidates with score > 0.25: 10
After NMS (IoU = 0.7): 1 ← the correct result
Using the raw output directly yields 10 overlapping boxes, and downstream code will read that as 10 people. inference.py --onnx already implements the full pipeline — letterbox pre-processing + decoding + NMS + coordinate mapping back — so you can copy it or just call it:
python inference.py --source imgs/ --onnx --conf 0.25 --out results.csv
2. ONNX ↔ PyTorch consistency is verified: across 134 natively 320×320 validation images, box counts match exactly (237 boxes vs. 237 boxes, 0 images mismatched), with a maximum coordinate difference of 0.043 px and a median difference of 0.006 px. ONNX can safely replace PyTorch inference.
3. Pure-CPU ONNX speed: about 8.0 ms per 320×320 image (8 cores, ONNX Runtime 1.20, CPUExecutionProvider). Usable, but far slower than GPU.
8. Training configuration (for reproduction)
| Item | Value |
|---|---|
| Backbone | YOLO26n, transferred from COCO-pretrained weights (296 of 514 trainable tensors matched the COCO weight shapes and loaded successfully) |
| Architecture | Defined by data/yolo26-ml2.yaml: the backbone is byte-identical to the 3-head version; only the neck's Upsample / Concat / C3k2 path to P3 was removed, and Detect input changed from [16, 19, 22] to [19, 22] |
| Input / batch / epochs | 320 / 256 / 150 (full 150 epochs, no early stop triggered) |
| Optimizer | MuSGD, lr0=0.01, cosine annealing, lrf=0.01, 3 warm-up epochs |
| Augmentation | mosaic 1.0 (disabled for the last 10 epochs) / scale 0.5 / fliplr 0.5 / mixup 0 |
| Reproducibility | seed=0, deterministic=True, cudnn.benchmark=False |
| Hardware / time | RTX 4090 24 GB, single process. 16.4 s per epoch (2 heads) / 19.2 s (3 heads); 150 epochs ≈ 41 minutes (48 minutes for the 3-head version). This arm had one resumed-from-checkpoint interruption, so its wall-clock time was slightly longer than 41 minutes |
| Framework versions | Ultralytics 8.4.211 / PyTorch 2.11.0+cu130 / Python 3.11 |
Reproduction commands and the four configurations
The training script train_ml.py selects a configuration via --arm <codename>, reusing the project's four historical branch names (the codenames themselves do not matter if you only want to read the results):
| Codename | Configuration (labels · heads) | Description |
|---|---|---|
D_full2h | Full labels · 2 heads | This model — use this to reproduce the deliverable |
B_p3cut | Tiny removed · 2 heads | Control varying only the labels |
C_full3h | Full labels · 3 heads | Control varying only the architecture |
A_ctrl | Tiny removed · 3 heads | Baseline with both variables reverted |
# Training (only --arm differs between the two lines; all other hyperparameters are identical, which guarantees a single-variable comparison)
python train_ml.py --arm D_full2h --epochs 150 --batch 256 # this model: full labels + 2 heads
python train_ml.py --arm B_p3cut --epochs 150 --batch 256 # control: tiny boxes removed + 2 heads
python train_ml.py --arm C_full3h --epochs 150 --batch 256 # control: full labels + 3 heads
python train_ml.py --arm A_ctrl --epochs 150 --batch 256 # control: tiny boxes removed + 3 heads
# All four weight sets must be re-evaluated on the same data yaml (training-time curves are not comparable across configurations — see the ⚠️ below)
python eval_ml.py --data data/head320_ml.yaml --weights \
D_full2h=<pt> B_p3cut=<pt> C_full3h=<pt> A_ctrl=<pt>
⚠️ mAP in the training-time
results.csvcannot be compared across configurations: each configuration'sdatayaml determines both the training labels and the validation labels, so for the "tiny removed" groups the validation labels also had tiny boxes removed — the denominators differ. All numbers in this document come from a re-evaluation after training on the same yaml.
⚠️ The optimizer must be set explicitly to
MuSGD: Ultralytics'optimizer='auto'selects MuSGD automatically when iterations exceed 10,000, but that is an implicit internal rule and the threshold may change across versions. Strict reproduction requires naming it explicitly, otherwise a different environment may produce AdamW results.
⚠️ These weights cannot be resumed directly: the exported
.pthas optimizer/scheduler/EMA state stripped. Also, these weights were trained withend2end=False, whereasyolo26-ml2.yamldeclaresend2end=True— callingmodel.train()again would rebuild anend2end=Truenetwork from the yaml (output shape becomes[1, 300, 6], with built-in NMS). The two target-assignment schemes differ, so they must not be mixed. To resume training, use the original training run'sruns_ml/D_full2h/weights/last.pt.
9. How to improve it (optional directions)
| Direction | What to do | Expected effect |
|---|---|---|
| Need tiny faces too | Keep the full labels and keep the P3 layer, retrain one arm. This cell is missing from the current 2×2 matrix | Extreme-small-face recall approaching the 3-head version, with latency close to this model |
| Raise absolute accuracy | Multi-seed training (currently seed 0 only), take the EMA or build an ensemble | Variance estimate of accuracy, not a mean improvement |
| On-device deployment | INT8 quantisation (ONNX Runtime / OpenVINO / TensorRT) | Not verified. This repo only tested FP32 |
| Dense crowds | Train at 640 + tiled inference | Not verified. Note: running the 320 model at 640 loses accuracy — see below |
Why you cannot simply switch this model's inference resolution to 640: the receptive fields and anchor scales of the P4/P5 layers in the 320 model were designed for 320 input. Doubling the input doubles the feature-map sizes, but the model's scale priors are unchanged — measured mAP50-95 drops from 0.9298 to 0.6864 (−24.3pp), and mAP50 drops from 0.9947 to 0.9291. Working at 640 requires retraining at 640 input, not changing inference parameters.
10. Known limitations (read before deploying)
-
Only one random seed (seed 0) was trained, so there is no multi-seed variance estimate. The CIs in §3.3 come from image-level paired bootstrap (would the conclusion change with a different set of validation images), not from training randomness (would it change with a different seed). The former is usually narrower.
-
The validation set shares scenes with the training set: there are many "different frames of the same scene" between them (74.9% when the dHash nearest-neighbour threshold is ≤10). This makes absolute metrics about 1–2pp optimistic (stratified check: near-duplicate-frame group P/R 0.984/0.987 vs. genuinely new frames 0.962/0.985). All four configurations are compared on the same validation set, so the horizontal conclusions (who beats whom) still hold, but do not read 0.93 mAP50-95 as cross-domain generalisation ability.
-
The mid bucket is small: only 291 ground-truth boxes. A "+2.08pp" difference corresponds to roughly 6 boxes, with a CI width of about ±2–3pp. The significance verdict was computed at this sample size, so read it as a trend rather than a precise scale. The large bucket has a similar problem in the opposite direction — 5,594 boxes make up 95% of the set, which makes global metrics almost insensitive to mid-bucket changes.
-
Latency numbers only represent RTX 4090 + FP32 + the Ultralytics predict path. INT8, TensorRT, OpenVINO and other GPUs were not tested. b32/b64 numbers are not reproducible (see the note in §6).
-
Annotation quality was not manually verified: labels were produced by an automatic detector, and agreement with human annotation (hairline, hats, profile views, occlusion) was never checked. The model's ceiling is bounded by those labels.
-
Dense crowds are out of distribution: 94.4% of training images contain a single face, with at most 6 per image. Do not use this model directly for group photos or crowd scenes.
-
The class is named
headbut the boxes cover the face region, excluding neck and back of head (see §4).
11. Citation and acknowledgements
- Backbone: Ultralytics YOLO26 (AGPL-3.0)
- Training framework: Ultralytics 8.4.211
- 3-head comparison weights: from this account's other repo,
wesjos/yolo-face-nano-fast, fileyolo26n-face320.pt
12. License
The model weights and code follow AGPL-3.0 (inherited from Ultralytics). For commercial use, confirm your AGPL obligations yourself or purchase a commercial license from Ultralytics.