Views
No views yet
1pip install ultralytics huggingface_hub
21from huggingface_hub import hf_hub_download
2from ultralytics import YOLO
3
4# Download weights from this Hugging Face repository
5path = hf_hub_download(repo_id="Shubham12864/YOLO26n-face", filename="yolo26 widerdataset.pt")
6
7# Load model
8model = YOLO(path)
9
10# Run detection on an image
11results = model.predict("your_image.jpg")
12
13# Display results
14results[0].show()face)