File size: 6,836 Bytes
9442718
 
 
 
 
 
 
 
 
 
 
2c48f19
 
 
 
 
 
9442718
23616aa
9442718
 
 
 
c34c129
 
 
 
 
 
 
 
 
8310561
c34c129
 
 
 
 
 
 
9442718
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2c48f19
 
 
9442718
 
 
 
 
 
 
 
 
 
 
 
 
2c48f19
 
 
 
 
 
 
 
 
 
9442718
 
2c48f19
 
9442718
2c48f19
 
 
 
 
 
 
 
9442718
 
2c48f19
 
9442718
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2c48f19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
configs:
  - config_name: samples
    data_files:
      - split: test
        path:
          - samples/*/query.json
  - config_name: protected
    data_files:
      - split: test
        path:
          - protected/*/test.json
  - config_name: validation
    data_files:
      - split: test
        path:
          - protected/*/validation.json
task_categories:
  - text-to-image
paper_ids:
  - "2603.01493"
---

## Quick Links

<p align="center">
  🏠 <a href="https://github.com/LaVieEnRose365/PhotoBench"><strong>GitHub</strong></a> ·
  📄 <a href="https://arxiv.org/abs/2603.01493v1"><strong>arXiv</strong></a> ·
  🏅 <a href="https://huggingface.co/spaces/SorrowTea/PhotoBench/"><strong>Leaderboard</strong></a> ·
  📦 <a href="https://huggingface.co/datasets/SorrowTea/PhotoBench"><strong>Dataset</strong></a> ·
  🏅 <a href="https://huggingface.co/spaces/SorrowTea/PhotoBench-Protected/"><strong>Protected Leaderboard</strong></a> ·
  📦 <strong>Protected Dataset</strong> ·
  🖼️ Raw Images: <a href="https://sbox.myoas.com/l/Be5be4053f6b43840"><strong>obox</strong></a> · <a href="https://drive.google.com/drive/folders/1IyAlRskgnXG6pJ7fYL5Ie0SFDKZ95-cI?usp=drive_link"><strong>Google Drive</strong></a> (pwd: Oppo2026)
</p>

---

# PhotoBench-Protected Dataset Overview

PhotoBench-Protected is the limited-information release of PhotoBench, the first benchmark constructed from authentic, personal albums for personalized multi-source intent-driven photo retrieval. This release provides pre-computed captions, embeddings, and metadata for agent-based evaluation.

This folder provides two components for evaluation and research:
- Samples: a small, display-oriented subset with images for demonstration only.
- Protected: machine-readable features without raw images for local evaluation.

## Directory Layout

```
dataset/
├── README.md            # English overview (this file)
├── README_CN.md         # Chinese overview
├── samples/             # Display subset (per album, 20 queries with display images)
│   ├── album1/
│   │   ├── query.json   # 20 queries with GroundTruth image filenames
│   │   └── images/      # display images referenced by GroundTruth
│   ├── album2/
│   └── album3/
│   ├── README.md
│   └── sample_queries.schema.json
└── protected/           # Features for local evaluation (no raw images)
    ├── album1/
    │   ├── test.json        # test queries for leaderboard evaluation
    │   ├── validation.json  # validation queries for local self-testing
    │   ├── query.json       # all queries (test + validation combined)
    │   └── images/
    │       ├── captions/    # text indices by model
    │       ├── embeddings/  # vector indices by model
    │       ├── metadata/
    │       │   └── metadata.json  # location/time metadata (privacy-preserving)
    │       └── faceid/
    │           ├── face_info_cn.json
    │           ├── face_info_en.json
    │           └── face_id_images/
    ├── album2/
    └── album3/
```

## Test vs. Validation Split

To prevent data leakage and overfitting, the **protected release strictly separates test and validation queries**:

- **`test.json`** — Queries used for official leaderboard evaluation. Submit predictions for these queries to the [Protected Leaderboard](https://huggingface.co/spaces/SorrowTea/PhotoBench-Protected/).
- **`validation.json`** — Queries for local self-testing only. These **will not** be scored on the leaderboard.
- **`query.json`** — Combined set of all queries (test + validation) for convenience.

> **Why this split?** The [full PhotoBench dataset](https://huggingface.co/datasets/SorrowTea/PhotoBench) provides `validation.json` with ground-truth annotations so you can tune your model locally. To ensure fair comparison, the protected leaderboard **only evaluates on `test.json`** queries. Do not train or tune on test queries.

## Files and Field Definitions

### protected/test.json
- Type: list of query objects for leaderboard evaluation.
- Key fields:
  - `query_cn`: text of the retrieval intent (Chinese).
  - `query_en`: text of the retrieval intent (English).
  - `Location`, `Time`, `Person`, `Object`, `Concept`, `Genre`: dimension annotations.
  - `Source`: source category label.

### protected/validation.json
- Same structure as `test.json`.
- For local self-evaluation only; **not** evaluated on the leaderboard.

### protected/query.json (album-level, all queries)
- Combined test + validation queries.
- Contains the same query fields as `test.json`.

### protected/images/captions/
- Per-model text indices for caption-based retrieval.
- Each `metadata.json` includes:
  - `model_name`: the name of the caption model.
  - `filenames`: list of image filenames included in the index.

### protected/images/embeddings/
- Per-model vector indices for image embedding retrieval.
- Each `metadata.json` includes:
  - `model_name`
  - `filenames`

### protected/images/metadata/metadata.json
- Privacy-preserving location and time metadata for images.
- Fields:
  - `latitude`: decimal degrees rounded to approximately 10 meters.
  - `longitude`: decimal degrees rounded to approximately 10 meters.
  - `time`: ISO-format timestamp string.

### protected/images/faceid/
- Anonymized person information to support social/identity reasoning without exposing raw identities.
- Files:
  - `face_info_cn.json` / `face_info_en.json` include:
    - `face_id_to_nicknames`: mapping from face IDs to anonymized names/nicknames.
    - `image_to_face_ids`: mapping from image filename to a list of face IDs present.
  - `face_id_images/`: representative images for face IDs that appear.

## Intended Use and Evaluation
- Samples: for display and qualitative understanding; not for model training.
- Protected: for local algorithms to run against machine-readable features.
- Evaluation: submit results (e.g., `submission.json`) for scoring against hidden GroundTruth.

## Submission Format

When submitting to the leaderboard, combine queries from all albums into a **single JSON array** and add the `album_id` field to each query object:

```json
[
  {
    "album_id": "1",
    "query_en": "cluttered desk",
    "pred": ["IMG_1234.jpg", "IMG_5678.jpg", ...]
  },
  {
    "album_id": "2",
    "query_en": "girl in purple sweater",
    "pred": ["IMG_9012.jpg", ...]
  }
]
```

**Important:**
- `album_id` must be `"1"`, `"2"`, or `"3"`.
- `query_en` must match exactly (case-sensitive).
- `pred` is an **ordered** list of predicted image filenames. Order matters for NDCG.
- Only full submissions (all 3 albums, all test queries) are eligible for public leaderboard ranking.