metadata
license: agpl-3.0
library_name: ultralytics
datasets:
- wider_face
YOLOv8 for Face Detection
Datasets
Face
Hand
Info
Model | Target | mAP 50 | mAP 50-95 |
---|---|---|---|
face_yolov8n.pt | 2D / realistic face | 0.660 | 0.366 |
face_yolov8n_v2.pt | 2D / realistic face | 0.669 | 0.372 |
face_yolov8s.pt | 2D / realistic face | 0.713 | 0.404 |
face_yolov8m.pt | 2D / realistic face | 0.737 | 0.424 |
hand_yolov8n.pt | 2D / realistic hand | 0.767 | 0.505 |
Usage
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
path = hf_hub_download("Bingsu/adetailer", "face_yolov8n.pt")
model = YOLO(path)
import cv2
from PIL import Image
img = "https://farm5.staticflickr.com/4139/4887614566_6b57ec4422_z.jpg"
output = model(img)
pred = output[0].plot()
pred = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
pred = Image.fromarray(pred)
pred