YOLO26n-Crowdhuman-FullBody-Detection

Single-class full-body person 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

Task Object detection (single class: full human body)
Architecture YOLO26n + P2/4 detection head (P2Β·P3Β·P4Β·P5 four-scale output)
Classes 0 = person (full-body boxes from the CrowdHuman fbox annotation)
Input 640Γ—640 (source images letterboxed)
Parameters 2,515,976
Compute 7.6 GFLOPs @ 640
Weights Ultralytics 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)
Framework Ultralytics β‰₯ 8.4.211 (the YOLO26 family needs a recent version)
Training data CrowdHuman train split β€” 15,000 images, 339,565 person boxes
Validation data CrowdHuman val split β€” 4,370 images, 99,481 person boxes

About fbox: CrowdHuman annotates each person with two boxes β€” fbox (full body, the complete body contour completed through occlusion, allowed to extend beyond image bounds) and vbox (visible body only). This model uses fbox. The median visible-area ratio is ~0.73; on heavily occluded samples the vbox/fbox area ratio can drop to 0.18. Converted YOLO labels clip fbox to image bounds (the official annotation allows out-of-bounds boxes), so there is a systematic difference from the official evaluation protocol.

Demo

Inference examples (yellow boxes = 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.

Game key art β€” 8 standing characters
Game key art β€” 8 standing characters
one person box per figure
999 Γ— 562

Film-poster key art
Film-poster key art
one person box per figure
880 Γ— 1100

Performance

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

Model P R mAP50 mAP50-95 Epochs Best epoch
This model (person-only) 0.8603 0.7506 0.8576 0.5358 38 18
YOLO26n-P2 joint model (person class) 0.8520 0.7570 0.8550 0.5340 130 118

Ablation vs the joint model (same class and same denominator)

Class This model (person-only) Joint model person class Ξ” Takeaway
person 0.5360 0.5340 +0.0020 for single-class Essentially a tie

Head supervision contributes almost nothing to full-body detection (+0.002, within noise). If your deployment only needs person boxes, this single-class model is the pick: comparable accuracy with cleaner semantics and a plainer class name.

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

mean median p90 p99 max
31.0 ms 14.2 ms 102.1 ms 146.4 ms 215.5 ms

Nearly identical to the joint model (30.8 ms mean).

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.
  • fbox may extend outside the image; converted YOLO labels are clipped to image bounds β†’ systematic difference from the official protocol.
  • Do not subtract this model's mAP50-95 from the joint model's two-class-average mAP50-95 β€” different denominators, guaranteed wrong conclusion.

Quick start

from ultralytics import YOLO

model = YOLO("best.pt")
model.names                        # {0: '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  = model.names[int(box.cls)]     # 'person'
        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:

Parameter Value Notes
imgsz 640 Training resolution; raise it for better far-field small people, at the cost of memory and latency
conf 0.25 Drop to 0.15 for more boxes in dense scenes; raise to 0.4 if false positives dominate
iou 0.7 NMS IoU; 0.6–0.7 recommended for dense crowds
max_det 700 CrowdHuman has up to 619 objects per image; capping at 300 cuts recall

Training details

Hyperparameter Value
Optimizer MuSGD
Initial lr 0.001 (see note below)
Batch size 32
Epochs 38 (early stop patience 20; best at epoch 18; resumed from EMA weights after an initial 100-epoch run was interrupted)
Augmentation mosaic 1.0 / scale 0.5 / fliplr 0.5 / translate 0.1 / close_mosaic 10
max_det 700
Seed 0 (deterministic=True)
Hardware RTX 4090 24 GB, peak VRAM ~22.9 GB
Framework Ultralytics 8.4.211

About lr0 = 0.001: this model was fine-tuned from the EMA weights of a previous run. Ultralytics' MuSGD amplifies lr0 roughly 3Γ—, and the default lr0=0.01 (peak lr β‰ˆ 0.0295) "blows up" inherited weights in the first 3 epochs (mAP50-95 falls from 0.5226 to 0.4940), polluting the early-stop counter. The resumed run therefore uses lr0 = 0.001 (peak lr β‰ˆ 0.003), climbing stably from 0.5226 to 0.5358.

Training curves

Reproduce from scratch

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

# 2) Train
yolo detect train model=yolo26n-p2.yaml pretrained=yolo26n.pt \
      data=CrowdHuman_yolo_single/person/data.yaml \
      epochs=130 imgsz=640 batch=32 optimizer=MuSGD lr0=0.001 \
      patience=20 max_det=700 mosaic=1.0 scale=0.5 close_mosaic=10 fliplr=0.5 \
      project=runs name=ch640_person_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 objects, and far-side small targets are missed heavily. 640 input is inherently hard here; raising imgsz helps at the cost of latency and memory.
  2. fbox vs vbox choice: this model predicts full-body boxes completed through occlusion; boxes are noticeably larger than the visible body in heavily occluded scenes. If your application needs visible-part-only boxes, this model is not the right fit (retrain on vbox).
  3. No cross-domain guarantee: train/val share video IDs, so val metrics are optimistic.
  4. Epoch count differs from the sibling models: this model is a resumed fine-tune (38 epochs); the other two trained 130 epochs. All three are converged; comparisons above use final val metrics, not epoch counts.

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}
}
Downloads last month
98
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train wesjos/YOLO26n-Crowdhuman-FullBody-Detection

Collection including wesjos/YOLO26n-Crowdhuman-FullBody-Detection

Paper for wesjos/YOLO26n-Crowdhuman-FullBody-Detection

Evaluation results