CUHK-CSE/wider_face
Updated • 3.23k • 52
How to use Shubham12864/YOLO26n-face with ultralytics:
# Couldn't find a valid YOLO version tag.
# Replace XX with the correct version.
from ultralytics import YOLOvXX
model = YOLOvXX.from_pretrained("Shubham12864/YOLO26n-face")
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)Fine-tuned YOLO26n (nano) model for single-class face detection, trained on the WIDER FACE dataset.
pip install ultralytics huggingface_hub
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# Download weights from this Hugging Face repository
path = hf_hub_download(repo_id="Shubham12864/YOLO26n-face", filename="yolo26 widerdataset.pt")
# Load model
model = YOLO(path)
# Run detection on an image
results = model.predict("your_image.jpg")
# Display results
results[0].show()
face)