/ Модель

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

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

YOLO26n-Crowdhuman-Head-FullBody-Detection

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

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

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

Бенчмарки

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

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

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

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

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

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

Это YOLO26n-Crowdhuman-Head-FullBody-Detection — модель обнаружения объектов на базе YOLO26n, обученная на CrowdHuman для совместного поиска голов людей и полных фигур. Она использует дополнительную маломасштабную голову обнаружения P2 и выдаёт рамки для классов head и person за один проход. Модель предназначена для анализа изображений с плотными скоплениями людей, где требуется одновременно находить головы и целые фигуры; для одного класса автор рекомендует отдельную специализированную модель.

Валидация по метрике Ultralytics COCO-style mAP дала mAP50-95 0,4876 в среднем по двум классам. Для голов показатель составил 0,4420, для людей — 0,5340. Дополнительная голова P2 уменьшает число изображений, где модель не предлагает рамки для очень маленьких объектов, однако в плотных сценах и при низком разрешении мелкие и удалённые цели всё ещё часто пропускаются.

Показатели валидации не сопоставимы напрямую с официальным протоколом CrowdHuman; кроме того, обучающая и валидационная выборки содержат общие идентификаторы видео, поэтому результаты могут завышать качество переноса на новые данные. Модель доступна в формате PyTorch через Ultralytics; лицензия указана как other, поэтому условия использования следует уточнить у автора репозитория.

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

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

Ограничения

В плотных сценах модель пропускает мелкие и удалённые объекты, а полнота обнаружения голов сравнительно низкая. Метрики валидации оптимистичны из-за общих идентификаторов видео между обучающей и валидационной выборками и не сопоставимы напрямую с официальным протоколом CrowdHuman.

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

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

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

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

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

Открыть на Hugging Face

YOLO26n-Crowdhuman-Head-FullBody-Detection

Joint head + full-body detection trained on CrowdHuman — YOLO26n with an extra P2 small-object detection head (P2·P3·P4·P5 outputs). The only model of the family that outputs both classes in a single pass.

mAP50-95 mAP50 Params Latency

Model overview

TaskObject detection (two classes: human head + full body)
ArchitectureYOLO26n + P2/4 detection head (P2·P3·P4·P5 four-scale output)
Classes0 = head (head boxes, hbox) · 1 = person (full-body boxes, fbox)
Input640×640 (source images letterboxed)
Parameters2,516,240
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, 332,050 head boxes + 339,565 person boxes
Validation dataCrowdHuman val split — 4,370 images, 97,316 head boxes + 99,481 person 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%).

Demo

Inference examples — yellow boxes, small = head, large = person; 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)

Overall (two-class average)

ModelPRmAP50mAP50-95EpochsBest epoch
This model (joint)0.85770.70580.80060.4876130118

Per class

ClassPRmAP50mAP50-95
head0.86300.65400.74600.4420
person0.85200.75700.85500.5340

Ablation vs the two single-class models (same class, same denominator)

ClassThis model (joint)Dedicated single-class modelΔTakeaway
head0.44200.4642 (Head-Detection)+0.0222 for single-classjoint person supervision is negative transfer for heads
person0.53400.5360 (FullBody-Detection)+0.0020 for single-classessentially a tie

Takeaway: if your deployment needs only heads or only persons, prefer the dedicated single-class model; this joint model earns its keep only when you need both box types from a single inference pass.

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

meanmedianp90p99max
30.8 ms13.8 ms100.7 ms145.2 ms218.8 ms

Nearly identical to both single-class models (30.8 / 31.0 / 30.8 ms mean) → the joint model pays no extra latency.

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 fbox / hbox annotations may extend outside the image; converted YOLO labels are clipped to image bounds.
  • Do not subtract the two-class-average mAP50-95 from a single-class model's mAP50-95 — different denominators, guaranteed wrong conclusion.

Quick start

from ultralytics import YOLO

model = YOLO("best.pt")
model.names                        # {0: 'head', 1: 'person'}

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_id = int(box.cls)
        cls    = model.names[cls_id]      # 'head' or 'person'
        conf   = float(box.conf)
        x1, y1, x2, y2 = box.xyxy[0].tolist()

Filter to one class:

heads   = [b for b in r.boxes if int(b.cls) == 0]
people  = [b for b in r.boxes if int(b.cls) == 1]

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 size48
Epochs130 (early stop patience 20; best at epoch 118)
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
ScheduleFirst 100 epochs + a resumed fine-tune from epoch 100 to 130 (the resume window reset the early-stop counter)

Training curves

Reproduce from scratch

# 1) Data: CrowdHuman -> YOLO format (two classes: 0=head hbox, 1=person fbox)
python crowdhuman_to_yolo.py --odgt annotation_train.odgt \
       --images CrowdHuman_train --out-dir CrowdHuman_yolo2 --box both

# 2) Train
yolo detect train model=yolo26n-p2.yaml pretrained=yolo26n.pt \
      data=CrowdHuman_yolo2/data.yaml \
      epochs=130 imgsz=640 batch=48 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_p2_640

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. Joint training is negative transfer for heads: the head class mAP50-95 is 0.0222 below the dedicated head detector (0.4420 vs 0.4642). If you don't need person boxes in the same pass, use the single-class head model.
  2. Visible misses in dense far-field scenes: the densest val image has 619 objects, and far-side small targets are mostly missed. 640 input is inherently hard here.
  3. Head recall is on the low side (0.654): heads are small and frequently occluded (a share of official annotations is marked head_attr.ignore).
  4. No cross-domain guarantee: train/val share video IDs, so val metrics are optimistic.
  5. No cross-class NMS: one person's head box and person box are both emitted independently; the coordinates differ, which is expected behavior.

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 требуют отдельного рантайма.

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

0 моделей