Datasets:
|
Download README.md from sinara-seth/face_verification_dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.88 kB
-
https://huggingface.co/datasets/sinara-seth/face_verification_dataset/resolve/main/README.md
- Command line
-
hf download hf://datasets/sinara-seth/face_verification_dataset/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/sinara-seth/face_verification_dataset/resolve/main/README.md
2.88 kB
| dataset_info: | |
| features: | |
| - name: image | |
| dtype: image | |
| - name: label | |
| dtype: int32 | |
| - name: label_name | |
| dtype: string | |
| - name: file_name | |
| dtype: string | |
| splits: | |
| - name: train | |
| num_bytes: 8589934592 | |
| num_examples: 21511 | |
| download_size: 8589934592 | |
| dataset_size: 8589934592 | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: dataset.parquet | |
| language: | |
| - en | |
| size_categories: | |
| - 10K<n<100K | |
| # Face Verification Dataset - Image & Identity Labels | |
| ## Dataset Overview | |
| Face verification dataset with **21,511 face images** from **922 unique identities**. Each image is stored as binary data in Parquet format with corresponding identity labels. | |
| - **Total examples:** 21,511 face images | |
| - **Total identities:** 922 persons | |
| - **Average per identity:** 23.3 images | |
| - **Total size:** ~8.6 GB | |
| - **Format:** Parquet (ZSTD compression) | |
| - **Task:** Face identification, verification, recognition | |
| ## Dataset Statistics | |
| | Metric | Value | | |
| |--------|-------| | |
| | Total Images | 21,511 | | |
| | Unique Identities | 922 | | |
| | Avg Images/Identity | 23.3 | | |
| | Total Size | ~8.6 GB | | |
| | Compression | ZSTD | | |
| ## Features | |
| | Feature | Type | Description | | |
| |---------|------|-------------| | |
| | `image` | bytes | Face image binary (JPEG/PNG) | | |
| | `label` | int32 | Identity ID (0-921) | | |
| | `label_name` | string | Identity folder name | | |
| | `file_name` | string | Original filename | | |
| ## Usage | |
| ### Load with Pandas | |
| ```python | |
| import pandas as pd | |
| from PIL import Image | |
| from io import BytesIO | |
| df = pd.read_parquet('dataset.parquet') | |
| # Display image | |
| image = Image.open(BytesIO(df.iloc[0]['image'])) | |
| print(f"Identity: {df.iloc[0]['label_name']}") | |
| print(f"Image size: {image.size}") | |
| # Face Dataset Parquet Export | |
| This dataset was exported from an ImageFolder style directory into a single Parquet file. | |
| ## Directory Structure | |
| ``` | |
| dataset_parquet/ | |
| ├── dataset.parquet # Single parquet file with all data | |
| ├── label_map.json # Mapping of identity names to label IDs | |
| ├── build_summary.json # Build metadata and statistics | |
| └── README.md # This file | |
| ``` | |
| ## Dataset Schema | |
| Each row in `dataset.parquet` contains: | |
| - **file_name** (string): Original image file name (e.g., "img1.jpg") | |
| - **label_name** (string): Identity/folder name (e.g., "0001", "0002") | |
| ## Statistics | |
| - Total images: 21,511 | |
| - Total identities: 922 | |
| - Format: Parquet (metadata-only, no image bytes) | |
| ## Example Usage | |
| ```python | |
| import pandas as pd | |
| # Load the dataset | |
| df = pd.read_parquet('dataset.parquet') | |
| print(df.head()) | |
| print(f"Shape: {df.shape}") | |
| print(f"Unique identities: {df['label_name'].nunique()}") | |
| # Load label mapping | |
| import json | |
| with open('label_map.json') as f: | |
| label_map = json.load(f) | |
| ``` | |