Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -63,132 +63,18 @@ dataset_info:
|
|
| 63 |
dtype: string
|
| 64 |
---
|
| 65 |
|
| 66 |
-
#
|
| 67 |
|
| 68 |
-
|
| 69 |
-
<img src="assets/lookbench_banner.png" alt="LookBench Banner" width="800"/>
|
| 70 |
-
</div>
|
| 71 |
|
| 72 |
-
##
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
### Key Features
|
| 77 |
-
|
| 78 |
-
- 🎨 **Multi-task Evaluation**: 4 distinct retrieval tasks across different scenarios
|
| 79 |
-
- 📊 **Three Evaluation Dimensions**: Coarse Recall, Fine Recall, and Graded NDCG
|
| 80 |
-
- 🔊 **Noise Injection**: Large-scale distractor gallery for realistic evaluation
|
| 81 |
-
- 🏷️ **Rich Metadata**: Category, attributes, bounding boxes, and difficulty levels
|
| 82 |
-
|
| 83 |
-
## 📁 Dataset Structure
|
| 84 |
-
|
| 85 |
-
```
|
| 86 |
-
LookBench/
|
| 87 |
-
├── v20251201/ # Version: December 2024
|
| 88 |
-
│ ├── aigen_streetlook/ # AI-generated street-style images
|
| 89 |
-
│ │ ├── query.parquet
|
| 90 |
-
│ │ └── gallery.parquet
|
| 91 |
-
│ ├── aigen_studio/ # AI-generated studio images
|
| 92 |
-
│ │ ├── query.parquet
|
| 93 |
-
│ │ └── gallery.parquet
|
| 94 |
-
│ ├── real_streetlook/ # Real street-style photos
|
| 95 |
-
│ │ ├── query.parquet
|
| 96 |
-
│ │ └── gallery.parquet
|
| 97 |
-
│ ├── real_studio_flat/ # Real studio flat-lay images
|
| 98 |
-
│ │ ├── query.parquet
|
| 99 |
-
│ │ └── gallery.parquet
|
| 100 |
-
│ └── noise/ # Distractor images
|
| 101 |
-
│ └── noise_*.parquet
|
| 102 |
-
└── README.md
|
| 103 |
-
```
|
| 104 |
-
|
| 105 |
-
## 🔢 Data Schema
|
| 106 |
-
|
| 107 |
-
| Column | Type | Description |
|
| 108 |
-
|--------|------|-------------|
|
| 109 |
-
| `image` | Image | Fashion product image |
|
| 110 |
-
| `category` | string | Product category (e.g., "bag", "dress", "shoes") |
|
| 111 |
-
| `main_attribute` | string | Primary visual attribute (e.g., "crocodile", "striped") |
|
| 112 |
-
| `other_attributes` | string | Additional attributes (comma-separated) |
|
| 113 |
-
| `bbox` | string | Bounding box coordinates [x1, y1, x2, y2] |
|
| 114 |
-
| `item_ID` | string | Unique item identifier |
|
| 115 |
-
| `task` | string | Task name |
|
| 116 |
-
| `difficulty` | string | Difficulty level: "easy", "medium", "hard" |
|
| 117 |
-
|
| 118 |
-
## 📊 Dataset Statistics
|
| 119 |
-
|
| 120 |
-
| Task | Query | Gallery | Difficulty Distribution |
|
| 121 |
-
|------|-------|---------|------------------------|
|
| 122 |
-
| AIGen-StreetLook | 160 | 571 | Easy: 30%, Medium: 40%, Hard: 30% |
|
| 123 |
-
| AIGen-Studio | 150 | 520 | Easy: 35%, Medium: 35%, Hard: 30% |
|
| 124 |
-
| Real-StreetLook | 200 | 680 | Easy: 25%, Medium: 45%, Hard: 30% |
|
| 125 |
-
| Real-StudioFlat | 180 | 610 | Easy: 30%, Medium: 40%, Hard: 30% |
|
| 126 |
-
| **Noise** | - | ~57,000 | - |
|
| 127 |
-
|
| 128 |
-
## 📏 Evaluation Metrics
|
| 129 |
-
|
| 130 |
-
### 1. Coarse Recall@K
|
| 131 |
-
Category-level matching. Returns 1 if any top-K result has the same category.
|
| 132 |
-
|
| 133 |
-
### 2. Fine Recall@K
|
| 134 |
-
Category + Main Attribute matching. Stricter criterion requiring both to match.
|
| 135 |
-
|
| 136 |
-
### 3. Graded NDCG@K
|
| 137 |
-
Full attribute scoring with graded relevance:
|
| 138 |
-
- Base score (1.0) for category + main_attribute match
|
| 139 |
-
- Bonus for each matching `other_attribute`
|
| 140 |
-
|
| 141 |
-
## 🚀 Quick Start
|
| 142 |
|
| 143 |
```python
|
| 144 |
from datasets import load_dataset
|
| 145 |
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
# Access query and gallery splits
|
| 150 |
-
query_data = dataset["query"]
|
| 151 |
-
gallery_data = dataset["gallery"]
|
| 152 |
-
|
| 153 |
-
# View a sample
|
| 154 |
-
print(query_data[0])
|
| 155 |
-
```
|
| 156 |
-
|
| 157 |
-
## 📈 Leaderboard
|
| 158 |
-
|
| 159 |
-
| Rank | Model | Coarse@10 | Fine@10 | NDCG@10 | Avg |
|
| 160 |
-
|------|-------|-----------|---------|---------|-----|
|
| 161 |
-
| 1 | Model A | 85.2 | 72.1 | 68.5 | 75.3 |
|
| 162 |
-
| 2 | Model B | 83.1 | 70.5 | 66.2 | 73.3 |
|
| 163 |
-
| 3 | Model C | 81.5 | 68.2 | 64.1 | 71.3 |
|
| 164 |
-
|
| 165 |
-
*Submit your results to be included in the leaderboard!*
|
| 166 |
-
|
| 167 |
-
## 📖 Citation
|
| 168 |
-
|
| 169 |
-
```bibtex
|
| 170 |
-
@dataset{lookbench2024,
|
| 171 |
-
title={LookBench: A Comprehensive Benchmark for Fashion Image Retrieval},
|
| 172 |
-
author={Your Team},
|
| 173 |
-
year={2024},
|
| 174 |
-
publisher={Hugging Face},
|
| 175 |
-
url={https://huggingface.co/datasets/your-org/LookBench}
|
| 176 |
-
}
|
| 177 |
-
```
|
| 178 |
-
|
| 179 |
-
## 📜 License
|
| 180 |
-
|
| 181 |
-
This dataset is released under the [Apache 2.0 License](LICENSE).
|
| 182 |
-
|
| 183 |
-
## 🔗 Links
|
| 184 |
-
|
| 185 |
-
- [GitHub Repository](https://github.com/your-org/look-bench)
|
| 186 |
-
- [Evaluation Code](https://github.com/your-org/look-bench)
|
| 187 |
-
- [Paper (coming soon)]()
|
| 188 |
-
|
| 189 |
-
---
|
| 190 |
|
| 191 |
-
<div align="center">
|
| 192 |
-
<b>Version:</b> v20251201 | <b>Last Updated:</b> December 2024
|
| 193 |
-
</div>
|
| 194 |
|
|
|
|
| 63 |
dtype: string
|
| 64 |
---
|
| 65 |
|
| 66 |
+
## How to Use
|
| 67 |
|
| 68 |
+
LookBench is designed for evaluating **fashion image retrieval** models under realistic and contamination-aware settings. Each subset consists of a **query set** and a large **corpus (gallery)** used for retrieval evaluation.
|
|
|
|
|
|
|
| 69 |
|
| 70 |
+
### 1. Load the Dataset
|
| 71 |
|
| 72 |
+
You can load LookBench using the 🤗 Datasets library:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
```python
|
| 75 |
from datasets import load_dataset
|
| 76 |
|
| 77 |
+
dataset = load_dataset("srpone/look-bench")
|
| 78 |
+
print(dataset)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
|
|
|
|
|
|
|
|
|
| 80 |
|