/ Модель

Характеристики

Лицензия
AGPL 3.0
Библиотека
ultralytics
Опубликована
14 ноя 2026

YOLO26n-face-detection-cut-P3

Поиск объектовИзображение → bounding_boxes3 профессии

YOLO26n Face Detector обнаруживает лица среднего и крупного размера на изображениях для видеосвязи, фронтальных камер и контроля доступа.

197скачиваний за 30 дней0лайковвеса обновлены30 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

YOLO26n Face Detector — модель обнаружения лиц, созданная на основе Ultralytics YOLO26n. Она принимает изображения размером 320×320 и выдаёт рамку и оценку уверенности для каждого найденного лица. В модели удалена самая мелкая ветвь обнаружения P3, поэтому она ориентирована на лица среднего и крупного размера, занимающие примерно 2% кадра или больше.

Модель предназначена для видеоконференций, контроля доступа с близкого расстояния, кадров прямых трансляций и фронтальных камер телефонов. По README, при разрешении 320×320 на валидационном наборе получено mAP50–95 0,930; изменение размера входа на 640 заметно снижает точность. Репозиторий содержит формат ONNX, для запуска также описано использование Ultralytics и ONNX Runtime.

Ограничения включают слабое обнаружение маленьких лиц, непригодность для плотных толп и возможную переоценку абсолютных метрик из-за сходства сцен в обучающей и валидационной выборках. Обучение выполнено с одним seed, а качество автоматических аннотаций не проверялось вручную. Лицензия — AGPL-3.0.

Сценарии применения

  • обнаружение лиц в кадрах видеоконференций
  • поиск лиц в видеопотоке с близкого расстояния
  • обнаружение лиц на фронтальной камере телефона
  • поиск лиц в кадрах прямой трансляции
  • обнаружение лиц при локальном контроле доступа

Ограничения

Модель плохо обнаруживает маленькие лица, не предназначена для плотных толп и требует входного размера 320×320. Валидационные метрики могут быть оптимистичны из-за пересечения сцен между обучающими и проверочными данными; обучение проведено только с одним seed.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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

imgsz must 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 · conf 0.95

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

images-1 678×452 · 1 face · conf 0.94

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

images-9 407×491 · 1 face · conf 0.96

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.05 returned 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)

TermMeaning
P3 / P4 / P5Names 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 headThe 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 branchNot 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
mAP50Mean average precision at IoU 0.5. A box that is "roughly right" counts as correct. Max is 1
mAP50-95mAP 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
IoUOverlap 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)
GFLOPsFloating-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 recallRecall 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 / largeThis 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 bootstrapA 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 / b64How many images per inference (batch size). b1 = one at a time, highest latency; larger batches lower average per-image latency
ms/imageAverage time per image, including the full predict path (pre-processing + inference + post-processing)
end2end / one2one vs one2manyYOLO'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 / opsetA 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 / deterministicRandom seed / forced determinism. A fixed seed is required to reproduce the same training result

3. Conclusions

3.1 Model size and compute

MetricThis model (2 heads)3-head versionChange
Parameters (full weights)2,535.7 K2,533.9 K+0.07% (effectively unchanged)
Parameters (after BN fusion, as used at inference)2,308,1782,389,735−3.4%
Compute @320 (BN-fused, the real inference figure)1.076 GFLOPs1.320 GFLOPs−18.5%
Compute @320 (unfused, BN layers counted)1.196 GFLOPs1.484 GFLOPs−19.4%
Compute @640 (BN-fused)4.40 GFLOPs5.37 GFLOPs−18.2%

⚠️ Three easy-to-miss unit traps:

  1. 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.
  2. 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.
  3. 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)DescriptionWeight file
Full labels · 2 heads← this model (the deliverable)head320_yolo26n_full2h_best.pt
Tiny boxes removed · 2 headsLabels changed, architecture unchanged → isolates the effect of removing tiny boxesReproduce it yourself; not published here
Full labels · 3 headsArchitecture changed, labels unchanged → isolates the effect of removing P3wesjos/yolo-face-nano-fast:yolo26n-face320.pt
Tiny boxes removed · 3 headsBoth variables reverted → control baselineReproduce 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)PRmAP50mAP50-95mid recall (2–10%)large recall (>10%)
Full labels · 2 heads (this model)0.99070.98730.99470.92980.94850.9977
Tiny removed · 2 heads0.99610.99220.99490.92970.92780.9979
Full labels · 3 heads0.98540.98490.99440.92630.94160.9977
Tiny removed · 3 heads0.99400.99270.99490.92860.91070.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:

ComparisonWhat changedmid recall change95% CIVerdict
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):

  1. 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.
  2. 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)mAP50mAP50-95tiny <2% recallmid 2–10%large >10%
Full labels · 2 heads (this model)0.98480.91030.68580.94850.9977
Full labels · 3 heads0.99300.91400.74710.94160.9977
Tiny removed · 2 heads0.96290.89300.05750.92780.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 priorityPick
Fastest, best accuracy on medium/large targetsThis 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 latencyNot 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 the ARMS dict in the training script train_ml.py; the full mapping is in §8.


4. Training data

ItemValue
Classes1 class: head
Train set23,150 images / 24,575 boxes (full — no boxes discarded)
Validation set5,797 images / 6,146 boxes
Train-set box area distributionlarge >10%: 22,435 · mid 2–10%: 1,110 · tiny <2%: 1,030
Validation-set box area distributionlarge >10%: 5,594 · mid 2–10%: 291 · tiny <2%: 261
Image size89.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 images5.57% (1,290 / 23,150); up to 6 faces per image → dense crowds are out of distribution
Box geometryFace region: hairline / top of forehead → chin, excluding neck and back of head
Annotation sourceProduced by an automatic detector, no per-box manual review
Train/val splitThe 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).

batchThis model ms/imageThis model FPS3-head version ms/image3-head version FPSSpeedup
14.872056.1616221% faster
80.7521,3300.9221,08418% faster
320.314 (see note)—0.357 (see note)——
640.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

FileSizeDescription
head320_yolo26n_full2h_best.pt5.38 MBMain weights. Optimizer/scheduler state stripped (inference only — cannot resume training), class names {0: 'head'}
head320_yolo26n_full2h_best.onnx9.34 MBONNX 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/*.jpg3 filesThe 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)

ItemValue
BackboneYOLO26n, transferred from COCO-pretrained weights (296 of 514 trainable tensors matched the COCO weight shapes and loaded successfully)
ArchitectureDefined 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 / epochs320 / 256 / 150 (full 150 epochs, no early stop triggered)
OptimizerMuSGD, lr0=0.01, cosine annealing, lrf=0.01, 3 warm-up epochs
Augmentationmosaic 1.0 (disabled for the last 10 epochs) / scale 0.5 / fliplr 0.5 / mixup 0
Reproducibilityseed=0, deterministic=True, cudnn.benchmark=False
Hardware / timeRTX 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 versionsUltralytics 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):

CodenameConfiguration (labels · heads)Description
D_full2hFull labels · 2 headsThis model — use this to reproduce the deliverable
B_p3cutTiny removed · 2 headsControl varying only the labels
C_full3hFull labels · 3 headsControl varying only the architecture
A_ctrlTiny removed · 3 headsBaseline 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.csv cannot be compared across configurations: each configuration's data yaml 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 .pt has optimizer/scheduler/EMA state stripped. Also, these weights were trained with end2end=False, whereas yolo26-ml2.yaml declares end2end=True — calling model.train() again would rebuild an end2end=True network 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's runs_ml/D_full2h/weights/last.pt.


9. How to improve it (optional directions)

DirectionWhat to doExpected effect
Need tiny faces tooKeep the full labels and keep the P3 layer, retrain one arm. This cell is missing from the current 2×2 matrixExtreme-small-face recall approaching the 3-head version, with latency close to this model
Raise absolute accuracyMulti-seed training (currently seed 0 only), take the EMA or build an ensembleVariance estimate of accuracy, not a mean improvement
On-device deploymentINT8 quantisation (ONNX Runtime / OpenVINO / TensorRT)Not verified. This repo only tested FP32
Dense crowdsTrain at 640 + tiled inferenceNot 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)

  1. 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.

  2. 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.

  3. 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.

  4. 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).

  5. 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.

  6. 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.

  7. The class is named head but 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, file yolo26n-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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · ultralytics

Нельзя запустить

Модели Ultralytics YOLO требуют отдельного рантайма.

Ревизия весов
53ac462

0 моделей