Update README.md
Browse files
README.md
CHANGED
|
@@ -33,6 +33,7 @@ A curated image dataset of human faces annotated for the presence of spectacles
|
|
| 33 |
|
| 34 |
All samples were collected from wikimedia/wit_base.
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
## 2. Usage
|
| 38 |
|
|
@@ -42,27 +43,35 @@ from PIL import Image
|
|
| 42 |
import os
|
| 43 |
|
| 44 |
# load full dataset
|
| 45 |
-
ds = load_dataset("hkanade/persons_with_spectacles")
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## 3. Columns
|
| 48 |
|
| 49 |
-
| Column
|
| 50 |
-
|--------------------------------|----------------------------------------
|
| 51 |
-
| `Image`
|
| 52 |
-
| `image_url`
|
| 53 |
-
| `embedding`
|
| 54 |
-
| `caption_attribution_description` | `string`
|
| 55 |
-
| `clip_emb`
|
| 56 |
-
| `h`
|
| 57 |
-
| `s`
|
| 58 |
-
| `v`
|
| 59 |
-
| `face_ok`
|
| 60 |
-
| `sim`
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
@misc{persons_with_spectacles_2025,
|
| 64 |
-
author = {
|
| 65 |
title = {Persons with Spectacles Dataset},
|
| 66 |
year = {2025},
|
| 67 |
howpublished = {\url{https://huggingface.co/datasets/hkanade/persons_with_spectacles}}
|
| 68 |
-
}
|
|
|
|
|
|
| 33 |
|
| 34 |
All samples were collected from wikimedia/wit_base.
|
| 35 |
|
| 36 |
+
---
|
| 37 |
|
| 38 |
## 2. Usage
|
| 39 |
|
|
|
|
| 43 |
import os
|
| 44 |
|
| 45 |
# load full dataset
|
| 46 |
+
ds = load_dataset("hkanade/persons_with_spectacles")
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
|
| 51 |
## 3. Columns
|
| 52 |
|
| 53 |
+
| Column | Datatype | Description |
|
| 54 |
+
| --------------------------------- | ---------------------------------------- | ------------------------------------------ |
|
| 55 |
+
| `Image` | `struct<bytes: binary, path: string>` | Image |
|
| 56 |
+
| `image_url` | `string` | URL of the Wikipedia page |
|
| 57 |
+
| `embedding` | `fixed_size_list<element: double>[2048]` | ResNet‑50 embedding |
|
| 58 |
+
| `caption_attribution_description` | `string` | Caption text |
|
| 59 |
+
| `clip_emb` | `fixed_size_list<element: float>[512]` | CLIP embedding of the image |
|
| 60 |
+
| `h` | `fixed_size_list<element: double>[32]` | Hue‑channel histogram |
|
| 61 |
+
| `s` | `fixed_size_list<element: double>[32]` | Saturation‑channel histogram |
|
| 62 |
+
| `v` | `fixed_size_list<element: double>[32]` | Value‑channel histogram |
|
| 63 |
+
| `face_ok` | `bool` | Placeholder flag indicating face validity |
|
| 64 |
+
| `sim` | `float` | Cosine similarity with the query embedding |
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## 4. Citation
|
| 69 |
+
|
| 70 |
+
```bibtex
|
| 71 |
@misc{persons_with_spectacles_2025,
|
| 72 |
+
author = {Hrishikesh Kanade (hkanade)},
|
| 73 |
title = {Persons with Spectacles Dataset},
|
| 74 |
year = {2025},
|
| 75 |
howpublished = {\url{https://huggingface.co/datasets/hkanade/persons_with_spectacles}}
|
| 76 |
+
}
|
| 77 |
+
```
|