Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,127 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Face Recognition Dataset (105 Classes)
|
| 3 |
+
emoji: 📸
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: orange
|
| 6 |
+
sdk: python
|
| 7 |
+
tags:
|
| 8 |
+
- dataset
|
| 9 |
+
- face-recognition
|
| 10 |
+
- embeddings
|
| 11 |
+
- computer-vision
|
| 12 |
+
license: mit
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# 📸 Face Recognition Dataset (105 Classes)
|
| 16 |
+
|
| 17 |
+
A curated and cleaned celebrity face dataset used for training and evaluating:
|
| 18 |
+
|
| 19 |
+
- **Face Recognition Model (CNN Embeddings + SVM)**
|
| 20 |
+
- **Face Recognition Demo App (Streamlit)**
|
| 21 |
+
|
| 22 |
+
This dataset contains **105 identities** and **~18,000 manually organized images**, formatted for deep-learning–based face recognition pipelines.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## 📁 Dataset Structure
|
| 27 |
+
|
| 28 |
+
The dataset follows a simple folder-based classification format:
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
face_recognition_dataset/
|
| 32 |
+
├── person_1/
|
| 33 |
+
├── person_2/
|
| 34 |
+
├── ...
|
| 35 |
+
└── person_105/
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
Each folder contains multiple face images for that identity.
|
| 39 |
+
This structure is compatible with most ML frameworks and embedding-based models.
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## 📦 Contents
|
| 44 |
+
|
| 45 |
+
- **18k+ images**
|
| 46 |
+
- **105 celebrity identities**
|
| 47 |
+
- Cleaned, resized, organized folder structure
|
| 48 |
+
- Suitable for:
|
| 49 |
+
- Embedding extraction (FaceNet, ArcFace, etc.)
|
| 50 |
+
- Classification (SVM, kNN, cosine similarity)
|
| 51 |
+
- Clustering
|
| 52 |
+
- Evaluation & benchmarking
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## 🧠 Model Trained on This Dataset
|
| 57 |
+
|
| 58 |
+
The official model trained on this dataset is available at:
|
| 59 |
+
|
| 60 |
+
**Model Repository:** `AI-Solutions-KK/face_recognition`
|
| 61 |
+
Contains:
|
| 62 |
+
- `svc_model.pkl`
|
| 63 |
+
- `classes.npy`
|
| 64 |
+
- `centroids.npy`
|
| 65 |
+
- Metadata + reproducible training pipeline
|
| 66 |
+
|
| 67 |
+
The model achieves **~99% accuracy** on this dataset.
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
## 🚀 Demo App Using This Dataset
|
| 72 |
+
|
| 73 |
+
A complete interactive app using this dataset is available at:
|
| 74 |
+
|
| 75 |
+
**App Repository:** `AI-Solutions-KK/face_recognition_model_demo_app`
|
| 76 |
+
|
| 77 |
+
Features:
|
| 78 |
+
- Image selection browser
|
| 79 |
+
- Real-time prediction
|
| 80 |
+
- Training report
|
| 81 |
+
- Prediction report
|
| 82 |
+
- Confusion matrix display
|
| 83 |
+
|
| 84 |
+
The app automatically downloads this dataset inside the Space using `snapshot_download()`.
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
## 🧩 Recommended Usage
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
from huggingface_hub import snapshot_download
|
| 92 |
+
|
| 93 |
+
snapshot_download(
|
| 94 |
+
repo_id="AI-Solutions-KK/face_recognition_dataset",
|
| 95 |
+
repo_type="dataset",
|
| 96 |
+
local_dir="my_dataset",
|
| 97 |
+
local_dir_use_symlinks=False,
|
| 98 |
+
)
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
After download, the dataset will be available at:
|
| 102 |
+
|
| 103 |
+
```
|
| 104 |
+
my_dataset/face_recognition_dataset/<class>/<image>.jpg
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
---
|
| 108 |
+
|
| 109 |
+
## 🔧 Suitable For
|
| 110 |
+
|
| 111 |
+
- Face recognition research
|
| 112 |
+
- Deep metric learning
|
| 113 |
+
- Identity classification
|
| 114 |
+
- Transfer learning experiments
|
| 115 |
+
- Benchmarking models like:
|
| 116 |
+
- FaceNet
|
| 117 |
+
- ArcFace
|
| 118 |
+
- MobileFaceNet
|
| 119 |
+
- InsightFace
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
## 👤 Author
|
| 124 |
+
|
| 125 |
+
Developed and organized by **Karan (AI-Solutions-KK)**
|
| 126 |
+
Please ⭐ the repo if you find it useful.
|
| 127 |
+
|