/ Модель

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

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

YOLO26n-Crowdhuman-Head-Detection

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

Одноклассовый детектор YOLO26n с дополнительной головой P2 для обнаружения человеческих голов, включая мелкие объекты в плотных толпах.

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

Бенчмарки

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

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

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

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

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

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

YOLO26n-Crowdhuman-Head-Detection — модель обнаружения объектов от wesjos, дообученная на CrowdHuman для поиска человеческих голов в плотных скоплениях людей. Это одно-классовый детектор на архитектуре YOLO26n с дополнительной маломасштабной головой P2 и выходами на четырёх уровнях P2–P5. Такая конструкция помогает находить мелкие головы: в описанном сравнении при размере изображения 640 добавление P2 снизило долю изображений без кандидата для очень маленьких голов с 28,7% до 7,4%. На валидации указаны mAP50 0,7617 и mAP50–95 0,4642.

Модель предназначена для анализа фото и видео с толпами, например для подсчёта людей по головам или локализации голов в плотных сценах. Она выдаёт рамки объектов класса head и оценки уверенности. Репозиторий содержит веса PyTorch и рассчитан на запуск через Ultralytics. Лицензия указана как other; конкретные условия следует сверить с карточкой репозитория. Метрики приведены для валидации на CrowdHuman и не гарантируют такое же качество на иных данных; в частности, точность может снижаться для сильно закрытых или очень мелких голов.

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

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

Ограничения

Оценки качества приведены для валидации на CrowdHuman и могут не переноситься на другие типы изображений. Сильно закрытые и очень мелкие головы могут пропускаться или получать низкую уверенность.

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

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

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

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

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

Открыть на Hugging Face

YOLO26n-Crowdhuman-Head-Detection

Single-class head detection trained on CrowdHuman — YOLO26n with an extra P2 small-object detection head (P2·P3·P4·P5 outputs), for dense-crowd scenes.

mAP50-95 mAP50 Params Latency

Model overview

TaskObject detection (single class: human head)
ArchitectureYOLO26n + P2/4 detection head (P2·P3·P4·P5 four-scale output)
Classes0 = head (head boxes from the CrowdHuman hbox annotation)
Input640×640 (source images letterboxed)
Parameters2,515,976
Compute7.6 GFLOPs @ 640
WeightsUltralytics PyTorch checkpoint (best.pt, saved by Ultralytics 8.4.211; the ema slot is empty as saved after training — inference loads the final model weights)
FrameworkUltralytics ≥ 8.4.211 (the YOLO26 family needs a recent version)
Training dataCrowdHuman train split — 15,000 images, 429,366 head boxes
Validation dataCrowdHuman val split — 4,370 images, 97,316 head boxes

Why the extra P2 head: 16.1% of CrowdHuman heads are smaller than 32 px at 640 input. Measured at 640 resolution, a P3–P5-only head returns no candidate box at all for tiny heads (below 0.05% of image area) in 28.7% of images; adding P2 drops that to 7.4% (person boxes: 14.4% → 3.1%). This is the main design rationale for the model family.

Demo

Inference examples (yellow boxes = head, class and confidence printed on each label). These are arbitrary web images, not CrowdHuman samples. Click any image to open it at full resolution.

Performance

Validation metrics (Ultralytics COCO-style mAP, IoU 0.50:0.95)

ModelPRmAP50mAP50-95EpochsBest epoch
This model (head-only)0.84890.67480.76170.4642130127
YOLO26n-P2 joint model (head class)0.86300.65400.74600.4420130118

Ablation takeaway: on identical data, a dedicated head detector beats joint head+person training (mAP50-95 +0.0222). Heads and persons differ ~4× in scale (16% of heads are <32 px while persons are large objects); one shared anchor assignment serving both scales creates gradient interference, and the head class suffers most.

Inference latency (RTX 4090, 640, max_det=800)

meanmedianp90p99max
30.8 ms13.9 ms99.9 ms145.1 ms217.3 ms

Metric caveats (please read)

  • These are Ultralytics COCO-style mAP, not the official CrowdHuman AP / mMR protocol (which excludes ignore regions) → not directly comparable with numbers in the official paper.
  • CrowdHuman splits train/val by image, not by video; all 10 video IDs appear on both sides → val metrics are optimistic and must not be read as cross-domain generalization.
  • CrowdHuman hbox (and fbox) annotations may extend outside the image; converted YOLO labels are clipped to image bounds.

Quick start

from ultralytics import YOLO

model = YOLO("best.pt")           # or the path to this repo's checkpoint
model.names                        # {0: 'head'}

results = model("your_image.jpg", conf=0.25, iou=0.7, imgsz=640, max_det=700)
for r in results:
    for box in r.boxes:
        cls = model.names[int(box.cls)]     # 'head'
        conf = float(box.conf)
        x1, y1, x2, y2 = box.xyxy[0].tolist()

Command line:

yolo predict model=best.pt source=your_image.jpg conf=0.25 iou=0.7 imgsz=640 max_det=700

Recommended parameters:

ParameterValueNotes
imgsz640Training resolution; raise it for better far-field tiny heads, at the cost of memory and latency
conf0.25Drop to 0.15 for more boxes in dense scenes; raise to 0.4 if false positives dominate
iou0.7NMS IoU; 0.6–0.7 recommended for dense heads
max_det700CrowdHuman has up to 619 objects per image; capping at 300 cuts recall

Training details

HyperparameterValue
OptimizerMuSGD
Initial lr0.01 (lr0)
Batch size32
Epochs130 (early stop patience 20; best at epoch 127)
Augmentationmosaic 1.0 / scale 0.5 / fliplr 0.5 / translate 0.1 / close_mosaic 10
max_det700
Seed0 (deterministic=True)
HardwareRTX 4090 24 GB, peak VRAM ~22.9 GB
FrameworkUltralytics 8.4.211

Training curves

Reproduce from scratch

# 1) Data: CrowdHuman -> YOLO format (head class, hbox)
python crowdhuman_to_yolo.py --odgt annotation_train.odgt \
       --images CrowdHuman_train --out-dir CrowdHuman_yolo_single/head --box hbox

# 2) Train
yolo detect train model=yolo26n-p2.yaml pretrained=yolo26n.pt \
      data=CrowdHuman_yolo_single/head/data.yaml \
      epochs=130 imgsz=640 batch=32 optimizer=MuSGD lr0=0.01 \
      patience=20 max_det=700 mosaic=1.0 scale=0.5 close_mosaic=10 fliplr=0.5 \
      project=runs name=ch640_head_only

The data conversion script (crowdhuman_to_yolo.py), per-epoch logs (results.csv), PR/F1 curves, confusion matrix, training args (args.yaml), model structure (yolo26n-p2.yaml) and the full source audit are published in the ModelScope mirror of this repo.

Known limitations

  1. Visible misses in dense far-field scenes: the densest val image has 619 heads, and tiny far-side targets are mostly missed. 640 input is inherently hard here; raising imgsz to 960/1280 helps but costs latency and memory.
  2. Recall is on the low side (R 0.675): heads are small and frequently occluded (a share of official annotations is marked head_attr.ignore).
  3. No cross-domain guarantee: train/val share video IDs, so val metrics are optimistic.
  4. No cross-class NMS: this model only outputs head, so there is no cross-class conflict by construction.

Dataset & license

  • Dataset: CrowdHuman (arXiv:1805.00123), original project: https://www.crowdhuman.org/.
  • Dataset license: CC BY-NC 4.0 — non-commercial research / educational use only. The weights in this repo inherit this restriction and must not be used commercially; do not redistribute the original CrowdHuman images.
  • The repo also follows Ultralytics AGPL-3.0 (YOLO26 architecture and best.pt format).

Citation

@inproceedings{shao2018crowdhuman,
  title   = {CrowdHuman: A Benchmark for Detecting Human in a Crowd},
  author  = {Shao, Liang and Huang, Zicheng and Wang, Jian and others},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year    = {2018}
}
@article{ultralyticsyolo26,
  title   = {Ultralytics YOLO26},
  journal = {Ultralytics Documentation},
  url     = {https://docs.ultralytics.com/models/yolo26}
}

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

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

GPU в ailist

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

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

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

Ревизия весов
867852a

0 моделей