AdamCodd/YOLOv11x-face-detection

🤗 Hugging Face 来源object-detectionapache-2.0342 MBother✓ 3 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo AdamCodd/YOLOv11x-face-detection ./model-folder
需要做种者 →

YOLOv11x-Face-Detection

A lightweight face detection model based on YOLO architecture (YOLOv11 xlarge), trained for 100 epochs on the WIDERFACE dataset. It's way more accurate than my YOLOv11n model, but slower.

It achieves the following results on the evaluation set:

==================== Results ====================
Easy   Val AP: 0.9629194049702874
Medium Val AP: 0.9519172409689101
Hard   Val AP: 0.8800338681974709
=================================================

YOLO results:

Confusion matrix:

[[27338 3110]

[12337 0]]

Usage

from huggingface_hub import hf_hub_download
from ultralytics import YOLO

model_path = hf_hub_download(repo_id="AdamCodd/YOLOv11x-face-detection", filename="model.pt")
model = YOLO(model_path)

results = model.predict("/path/to/your/image", save=True) # saves the result in runs/detect/predict

Limitations

  • Performance may vary in extreme lighting conditions
  • Best suited for frontal and slightly angled faces
  • Optimal performance for faces occupying >20 pixels