/ Модель

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

Лицензия
AGPL 3.0
Базовая модель
YOLO26
Библиотека
ultralytics
Опубликована
12 ноя 2026

YOLO-face-detection320

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

Компактный детектор YOLO для поиска лиц на портретах и кадрах, где лицо занимает значительную часть изображения.

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

Бенчмарки

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

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

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

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

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

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

wesjos/YOLO-face-detection320 — набор из четырёх детекторов лиц nano-размера на базе моделей YOLO. Они обучены по одному рецепту и на одном наборе данных, поэтому подходят для прямого сравнения. Модель принимает изображения с фиксированным размером входа 320×320 и находит один класс объектов — лицо, возвращая рамки и оценки уверенности.

Модель рассчитана на портреты, фотографии для документов, аватары и кадры контроля доступа, где лицо занимает заметную часть изображения. В README надёжная область применения описана как рамка лица примерно 12–22% площади кадра; примеры включают лица с такой долей. Для дальних маленьких лиц, групповых сцен и плотных скоплений людей модель не подходит. Репозиторий содержит веса PyTorch для Ultralytics; лицензия — AGPL-3.0.

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

  • поиск лица на фотографии для документа
  • обнаружение лица на аватаре или портрете
  • детекция лица в кадре камеры контроля доступа
  • поиск крупного лица на изображении 320×320

Ограничения

Модель рассчитана на одно крупное лицо или портрет и менее надёжна для маленьких удалённых лиц, групповых сцен и плотных скоплений людей. Вход фиксирован на 320×320 пикселей.

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

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

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

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

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

Открыть на Hugging Face

YOLO-face-detection320

Four nano-scale YOLO face detectors. Fixed 320×320 input, single class face. All four were trained on the same dataset with the same recipe, so they can be compared directly.

Demo images

Each panel is one image: the output of yolov8n-face320.pt, the number on the box is the confidence. Params: imgsz=320, conf=0.25, iou=0.5. Run on CPU with ultralytics 8.3.51 — no cherry-picking, no post-processing.

iu 188×268 · 1 face · conf 0.96

iu · 188×268 · 1 face · box covers 13.4% of the frame · conf 0.961

images 556×552 · 1 face · conf 0.93

images · 556×552 · 1 face · box covers 22.8% of the frame · conf 0.931

licensed-image 2048×1365 · 1 face · conf 0.93

licensed-image · 2048×1365 · 1 face · box covers 22.6% of the frame · conf 0.925 (downscaled to 320 for inference; the face still spans ~23% of the frame — the model's comfort zone)

lyf 381×524 · 1 face · conf 0.96

lyf · 381×524 · 1 face · box covers 15.8% of the frame · conf 0.964

talyor 452×678 · 1 face · conf 0.95

talyor · 452×678 · 1 face · box covers 12.6% of the frame · conf 0.950

Each image holds a single face. Re-running the set at conf=0.10 returned the same count (1 each) for yolov8n, yolo11n and yolov5nu. yolo26n adds a second low-confidence box on two images (images 0.30, licensed-image 0.14) — genuine extra candidates that the 0.25 threshold filters out.

When to use it

These weights are built for small inputs where the face takes up a large share of the frame. The input is a fixed 320×320, and the intended subject is one face (or a head-and-shoulders shot) filling most of the image: ID photos, avatars, access-control / gate captures, cropped portraits. The demo above sits in the 12%–22% box-to-frame range, which is where the model is most reliable.

Conversely, tiny distant faces (ground-truth box < 0.4% of the frame) only reach ~0.73 recall — that is not what these weights are for. Tile large images and run 320 on each tile, or train a 640 model.

Training data

ItemValue
Classes1: face
Train set23,150 images / 24,575 boxes
Val set5,797 images / 6,146 boxes
Total boxes30,721
Image sizemostly native 320×320 (25,845 / 28,947); train and val both at 320, no resizing
Labelsproduced by an automatic detector, not hand-verified box by box
Splitofficial split; train/val verified free of duplicate images (md5 + perceptual hash)

Results

All measured on the same val set (5,797 images / 6,146 boxes), imgsz=320, conf=0.001, COCO-style metrics:

ModelFileParamsGFLOPsSizePRmAP50mAP50-95b1 (ms)b1 FPSb32 FPS
yolov8n-face320.pt6.50 MB3.138 M2.196.5 MB0.99080.97960.99310.91424.392283646
yolo11n-face320.pt5.51 MB2.605 M1.635.5 MB0.99130.97890.99290.91475.591793106
yolo26n-face320.pt5.47 MB2.534 M1.485.5 MB0.99000.97970.99300.91406.411562886
yolov5nu-face320.pt5.53 MB2.636 M1.935.5 MB0.99270.97950.99320.91384.682143580
  • Speed: RTX 4090, FP16, full path including preprocess + forward + NMS, median of 7 runs.
  • Accuracy: pairwise differences across the four models were tested with a 1000-round paired bootstrap; every 95% CI crosses zero — no measurable accuracy difference, so pick by speed and size.
  • yolov5nu is Ultralytics' port of YOLOv5n (2.64 M params), not the 1.77 M model from the original YOLOv5 repo.

Inference

from ultralytics import YOLO

model = YOLO("yolo26n-face320.pt")
results = model.predict("image.jpg", imgsz=320, conf=0.25, iou=0.5)
for b in results[0].boxes:
    print(b.xyxy.tolist(), float(b.conf))
yolo predict model=yolo26n-face320.pt source=./images imgsz=320 conf=0.25

Caveats

  • Input must be 320. Running a 320-trained model at 640 drops mAP50-95 from 0.914 to 0.775 — do not upscale the input.
  • The box is the face region (hairline to chin), excluding the back of the head and neck. If downstream needs a full-head box, redefine it there.
  • Weak on small targets: recall ~0.73 for GT boxes < 0.4% of the frame, ~0.77 for 0.4–2%, 0.998 above 10%. For distant small faces, tile the image or train a 640 model.
  • Of the misses, 88.5% are complete non-responses (not sloppy boxes), and ~32% are "detected but below 0.25"; lowering conf to ~0.15 recovers about a third of them at the cost of more false positives.
  • The training set is dominated by single-face images (only 5.5% have multiple faces); dense crowds are out of distribution.

Training setup

ItemValue
epochs150
batch256
imgsz320
optimizerauto (MuSGD with lr 0.01 when iterations > 10000)
augmentationdefaults (mosaic 1.0, scale 0.5, fliplr 0.5; mosaic off for the last 10 epochs)
seed0, deterministic=True
stackUltralytics 8.4.211 / torch 2.11.0+cu130
Per-model training time41–49 min (RTX 4090)

License

AGPL-3.0 (inherited from Ultralytics).

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

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

GPU в ailist

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

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

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

Ревизия весов
a765b73

0 моделей