Datasets:
|
Download README.md from sinara-seth/face_verification_ds: direct link, hf CLI and curl.
- Browser
- Download file 3.71 kB
-
https://huggingface.co/datasets/sinara-seth/face_verification_ds/resolve/main/README.md
- Command line
-
hf download hf://datasets/sinara-seth/face_verification_ds/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/sinara-seth/face_verification_ds/resolve/main/README.md
3.71 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: 6794901504 | |
| num_examples: 17670 | |
| - name: validation | |
| num_bytes: 1795033088 | |
| num_examples: 3841 | |
| download_size: 8589934592 | |
| dataset_size: 8589934592 | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: data/train/train.parquet | |
| - split: validation | |
| path: data/validation/validation.parquet | |
| language: | |
| - en | |
| size_categories: | |
| - 10K<n<100K | |
| # Face Verification Dataset - Parquet Format (Train/Validation Splits) | |
| ## Overview | |
| Face verification dataset in Parquet format with separate train and validation splits. | |
| - **Format:** Apache Parquet with ZSTD compression | |
| - **Image Storage:** Binary (embedded in parquet files) | |
| - **Splits:** train.parquet, validation.parquet | |
| - **Metadata:** label_map.json, build_summary.json | |
| ## Dataset Statistics | |
| | Metric | Value | | |
| |--------|-------| | |
| | Total Images | 21,511 | | |
| | Training Images | 17,670 | | |
| | Validation Images | 3,841 | | |
| | Unique Identities | 922 | | |
| | Avg Images/Identity | 23.3 | | |
| | Total Size | ~8.6 GB | | |
| | Compression | ZSTD | | |
| | Format | Apache Parquet | | |
| ## Directory Structure | |
| ``` | |
| dataset_parquet_splits/ | |
| ├── data/ | |
| │ ├── train/ | |
| │ │ └── train.parquet # Training set (17,670 images) | |
| │ └── validation/ | |
| │ └── validation.parquet # Validation set (3,841 images) | |
| ├── label_map.json # Identity label mappings | |
| ├── build_summary.json # Build configuration & stats | |
| └── README.md # This file | |
| ``` | |
| ## Dataset Schema | |
| Each parquet file contains the following columns: | |
| | Column | Type | Description | | |
| |--------|------|-------------| | |
| | `image` | struct | Binary image {bytes: binary, path: string} | | |
| | `label` | int32 | Identity ID (0-921) | | |
| | `label_name` | string | Identity folder name | | |
| | `file_name` | string | Original image filename | | |
| ## Usage Examples | |
| ### Load Training Data | |
| ```python | |
| import pandas as pd | |
| from PIL import Image | |
| from io import BytesIO | |
| df_train = pd.read_parquet('data/train/train.parquet') | |
| # Read first image | |
| img_bytes = df_train.iloc[0]['image']['bytes'] | |
| image = Image.open(BytesIO(img_bytes)) | |
| print(f"Identity: {df_train.iloc[0]['label_name']}") | |
| print(f"Image shape: {image.size}") | |
| print(f"Training samples: {len(df_train)}") | |
| ``` | |
| ### Load Validation Data | |
| ```python | |
| df_val = pd.read_parquet('data/validation/validation.parquet') | |
| print(f"Validation samples: {len(df_val)}") | |
| ``` | |
| ### Load Label Map | |
| ```python | |
| import json | |
| with open('label_map.json') as f: | |
| label_map = json.load(f) | |
| print(f"Total identities: {len(label_map)}") | |
| # label_map = {"identity_name_1": 0, "identity_name_2": 1, ...} | |
| ``` | |
| ### Load Build Summary | |
| ```python | |
| import json | |
| with open('build_summary.json') as f: | |
| summary = json.load(f) | |
| print(f"Input directory: {summary['input_dir']}") | |
| print(f"Split stats: {summary['splits']}") | |
| ``` | |
| ### With Hugging Face Datasets | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset('your-username/face-verification-dataset') | |
| print(ds) | |
| # Access splits | |
| train_ds = ds['train'] | |
| val_ds = ds['validation'] | |
| ``` | |
| ## Build Parameters | |
| Refer to `build_summary.json` for: | |
| - Input/output directories | |
| - Compression method (ZSTD) | |
| - Extension filters (.jpg, .jpeg, .png, .bmp, .webp) | |
| - Train/validation split ratio | |
| - Random seed for reproducibility | |
| --- | |
| Generated with `build_hf_parquet.py` | |