File size: 2,672 Bytes
98adc28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
title: Face Recognition Dataset (105 Classes)
emoji: 📸
colorFrom: yellow
colorTo: orange
sdk: python
tags:
- dataset
- face-recognition
- embeddings
- computer-vision
license: mit
---

# 📸 Face Recognition Dataset (105 Classes)

A curated and cleaned celebrity face dataset used for training and evaluating:

- **Face Recognition Model (CNN Embeddings + SVM)**
- **Face Recognition Demo App (Streamlit)**

This dataset contains **105 identities** and **~18,000 manually organized images**, formatted for deep-learning–based face recognition pipelines.

---

## 📁 Dataset Structure

The dataset follows a simple folder-based classification format:

```
face_recognition_dataset/
  ├── person_1/
  ├── person_2/
  ├── ...
  └── person_105/
```

Each folder contains multiple face images for that identity.  
This structure is compatible with most ML frameworks and embedding-based models.

---

## 📦 Contents

- **18k+ images**
- **105 celebrity identities**
- Cleaned, resized, organized folder structure
- Suitable for:
  - Embedding extraction (FaceNet, ArcFace, etc.)
  - Classification (SVM, kNN, cosine similarity)
  - Clustering
  - Evaluation & benchmarking

---

## 🧠 Model Trained on This Dataset

The official model trained on this dataset is available at:

**Model Repository:** `AI-Solutions-KK/face_recognition`  
Contains:
- `svc_model.pkl`
- `classes.npy`
- `centroids.npy`
- Metadata + reproducible training pipeline

The model achieves **~99% accuracy** on this dataset.

---

## 🚀 Demo App Using This Dataset

A complete interactive app using this dataset is available at:

**App Repository:** `AI-Solutions-KK/face_recognition_model_demo_app`

Features:
- Image selection browser  
- Real-time prediction  
- Training report  
- Prediction report  
- Confusion matrix display  

The app automatically downloads this dataset inside the Space using `snapshot_download()`.

---

## 🧩 Recommended Usage

```python
from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="AI-Solutions-KK/face_recognition_dataset",
    repo_type="dataset",
    local_dir="my_dataset",
    local_dir_use_symlinks=False,
)
```

After download, the dataset will be available at:

```
my_dataset/face_recognition_dataset/<class>/<image>.jpg
```

---

## 🔧 Suitable For

- Face recognition research  
- Deep metric learning  
- Identity classification  
- Transfer learning experiments  
- Benchmarking models like:
  - FaceNet  
  - ArcFace  
  - MobileFaceNet  
  - InsightFace  

---

## 👤 Author

Developed and organized by **Karan (AI-Solutions-KK)**  
Please ⭐ the repo if you find it useful.