Downloads · 30 days
0
arnabdhar/YOLOv8-Face-Detection
YOLOv8-Face-Detection is a object detection model from arnabdhar. Use it when you need objects located in an image. The card lists the license as agpl-3.0.
This model was fine tuned on a dataset of over 10k images containing human faces. The model was fine tuned for 100 epochs with a batch size of 16 on a single NVIDIA V100 16GB GPU, it took around 140 minutes for the fi…
Downloads · 30 days
0
Access
Public
Updated Feb 20, 2024
Repo size
9.1 MB
Likes
115
Public
Click a slice to open those files.
.pt6.2 MB · 63%
From the Hugging Face model README
This model was fine tuned on a dataset of over 10k images containing human faces. The model was fine tuned for 100 epochs with a batch size of 16 on a single NVIDIA V100 16GB GPU, it took around 140 minutes for the fine tuning to complete.
# load libraries
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
from supervision import Detections
from PIL import Image
# download model
model_path = hf_hub_download(repo_id="arnabdhar/YOLOv8-Face-Detection", filename="model.pt")
# load model
model = YOLO(model_path)
# inference
image_path = "/path/to/image"
output = model(Image.open(image_path))
results = Detections.from_ultralytics(output[0])