File size: 1,614 Bytes
6bdc8e6
06cc0d8
6d3d897
 
 
 
 
 
 
6bdc8e6
6d3d897
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b9ddd5a
6d3d897
 
 
 
 
 
 
49d4953
6d3d897
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
license: agpl-3.0
library: ultralytics
tags:
- object-detection
- pytorch
- roboflow-universe
- pickle
- face-detection
---
# Face Detection using YOLOv8

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.

## Downstream Tasks

- __Face Detection__: This model can directly use this model for face detection or it can be further fine tuned own a custom dataset to improve the prediction capabilities.
- __Face Recognition__: This model can be fine tuned to for face recognition tasks as well, create a dataset with the images of faces and label them accordingly using name or any ID and then use this model as a base model for fine tuning.

# Example Usage

```python
# 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])

```


# Links

- __Dataset Source__: [Roboflow Universe](https://universe.roboflow.com/large-benchmark-datasets/wider-face-ndtcz/dataset/1)
- __Weights & Biases__: [Run Details](https://wandb.ai/2wb2ndur/Face-Detection/overview?workspace=user-2wb2ndur) 
- __Training Artifacts__: [training-artifacts](./fine-tune-artifacts/)