Datasets:
Clean dataset card: 39 per-benchmark configs only
Browse files
README.md
CHANGED
|
@@ -18,12 +18,8 @@ tags:
|
|
| 18 |
- lottie
|
| 19 |
pretty_name: "GDB: GraphicDesignBench"
|
| 20 |
size_categories:
|
| 21 |
-
-
|
| 22 |
configs:
|
| 23 |
-
- config_name: all
|
| 24 |
-
data_files:
|
| 25 |
-
- split: train
|
| 26 |
-
path: "all/train-*"
|
| 27 |
- config_name: category-1
|
| 28 |
data_files:
|
| 29 |
- split: train
|
|
@@ -180,34 +176,7 @@ configs:
|
|
| 180 |
data_files:
|
| 181 |
- split: train
|
| 182 |
path: "typography-8/train-*"
|
| 183 |
-
|
| 184 |
-
data_files:
|
| 185 |
-
- split: train
|
| 186 |
-
path: "category/train-*"
|
| 187 |
-
- config_name: layout
|
| 188 |
-
data_files:
|
| 189 |
-
- split: train
|
| 190 |
-
path: "layout/train-*"
|
| 191 |
-
- config_name: lottie
|
| 192 |
-
data_files:
|
| 193 |
-
- split: train
|
| 194 |
-
path: "lottie/train-*"
|
| 195 |
-
- config_name: svg
|
| 196 |
-
data_files:
|
| 197 |
-
- split: train
|
| 198 |
-
path: "svg/train-*"
|
| 199 |
-
- config_name: template
|
| 200 |
-
data_files:
|
| 201 |
-
- split: train
|
| 202 |
-
path: "template/train-*"
|
| 203 |
-
- config_name: temporal
|
| 204 |
-
data_files:
|
| 205 |
-
- split: train
|
| 206 |
-
path: "temporal/train-*"
|
| 207 |
-
- config_name: typography
|
| 208 |
-
data_files:
|
| 209 |
-
- split: train
|
| 210 |
-
path: "typography/train-*"
|
| 211 |
---
|
| 212 |
|
| 213 |
# GDB: GraphicDesignBench
|
|
@@ -215,19 +184,36 @@ configs:
|
|
| 215 |
**A Real-World Benchmark for Graphic Design AI**
|
| 216 |
|
| 217 |
GDB is the first large-scale benchmark grounded in the work marketing and branding teams ship every day.
|
| 218 |
-
It
|
| 219 |
-
|
| 220 |
|
| 221 |
- **Paper**: [arXiv:2604.04192](https://arxiv.org/abs/2604.04192)
|
| 222 |
- **Code**: [github.com/purvanshi/lica-bench](https://github.com/purvanshi/lica-bench)
|
| 223 |
- **Blog**: [lica.world/blog/gdb-real-world-benchmark-for-graphic-design](https://lica.world/blog/gdb-real-world-benchmark-for-graphic-design)
|
| 224 |
-
- **Results**: [Explore all task results](https://lica.world/blog/gdb-real-world-benchmark-for-graphic-design)
|
| 225 |
|
| 226 |
-
##
|
| 227 |
|
| 228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
-
| Domain | Understanding | Generation | Total |
|
| 231 |
|--------|:---:|:---:|:---:|
|
| 232 |
| Layout | 4 | 4 | 8 |
|
| 233 |
| Typography | 6 | 2 | 8 |
|
|
@@ -238,42 +224,71 @@ needs to change before they can do real design work.
|
|
| 238 |
| Lottie | 0 | 2 | 2 |
|
| 239 |
| **Total** | **23** | **16** | **39** |
|
| 240 |
|
| 241 |
-
##
|
| 242 |
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
``
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
|
| 256 |
## Schema
|
| 257 |
|
| 258 |
-
|
| 259 |
|
| 260 |
| Field | Type | Description |
|
| 261 |
|-------|------|-------------|
|
| 262 |
-
| `sample_id` | string | Unique
|
| 263 |
-
| `benchmark_id` | string |
|
| 264 |
-
| `domain` | string |
|
| 265 |
| `task_type` | string | `understanding` or `generation` |
|
| 266 |
-
| `benchmark_name` | string | Human-readable
|
| 267 |
-
| `prompt` | string | The evaluation prompt
|
| 268 |
-
| `ground_truth` | string | Expected answer (JSON-serialized for
|
| 269 |
-
| `image` | Image | Input image when applicable |
|
| 270 |
-
| `media_path` | string | Relative path to media
|
| 271 |
| `media_type` | string | `image`, `video`, or `none` |
|
| 272 |
-
| `metadata` | string | JSON with task-specific extra fields (SVG code, options, etc.) |
|
| 273 |
|
| 274 |
## Evaluation
|
| 275 |
|
| 276 |
-
|
| 277 |
|
| 278 |
```bash
|
| 279 |
pip install lica-bench
|
|
@@ -284,11 +299,12 @@ from design_benchmarks.registry import BenchmarkRegistry
|
|
| 284 |
|
| 285 |
registry = BenchmarkRegistry()
|
| 286 |
registry.discover()
|
|
|
|
| 287 |
bench = registry.get("svg-1")
|
| 288 |
-
scores = bench.evaluate(predictions,
|
| 289 |
```
|
| 290 |
|
| 291 |
-
See the [lica-bench README](https://github.com/purvanshi/lica-bench) for full usage.
|
| 292 |
|
| 293 |
## Citation
|
| 294 |
|
|
|
|
| 18 |
- lottie
|
| 19 |
pretty_name: "GDB: GraphicDesignBench"
|
| 20 |
size_categories:
|
| 21 |
+
- 10K<n<100K
|
| 22 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
- config_name: category-1
|
| 24 |
data_files:
|
| 25 |
- split: train
|
|
|
|
| 176 |
data_files:
|
| 177 |
- split: train
|
| 178 |
path: "typography-8/train-*"
|
| 179 |
+
default_config_name: svg-1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
---
|
| 181 |
|
| 182 |
# GDB: GraphicDesignBench
|
|
|
|
| 184 |
**A Real-World Benchmark for Graphic Design AI**
|
| 185 |
|
| 186 |
GDB is the first large-scale benchmark grounded in the work marketing and branding teams ship every day.
|
| 187 |
+
It covers 39 tasks across 7 design domains, testing both understanding (e.g. classify a font, detect components)
|
| 188 |
+
and generation (e.g. produce an SVG, render styled text, generate a layout).
|
| 189 |
|
| 190 |
- **Paper**: [arXiv:2604.04192](https://arxiv.org/abs/2604.04192)
|
| 191 |
- **Code**: [github.com/purvanshi/lica-bench](https://github.com/purvanshi/lica-bench)
|
| 192 |
- **Blog**: [lica.world/blog/gdb-real-world-benchmark-for-graphic-design](https://lica.world/blog/gdb-real-world-benchmark-for-graphic-design)
|
|
|
|
| 193 |
|
| 194 |
+
## Quick Start
|
| 195 |
|
| 196 |
+
```python
|
| 197 |
+
from datasets import load_dataset
|
| 198 |
+
|
| 199 |
+
# Load one benchmark
|
| 200 |
+
ds = load_dataset("lica-world/GDB", "svg-1", split="train")
|
| 201 |
+
|
| 202 |
+
# Load several benchmarks together
|
| 203 |
+
from datasets import concatenate_datasets
|
| 204 |
+
configs = ["svg-1", "svg-2", "svg-3"]
|
| 205 |
+
ds = concatenate_datasets([
|
| 206 |
+
load_dataset("lica-world/GDB", c, split="train") for c in configs
|
| 207 |
+
])
|
| 208 |
+
```
|
| 209 |
+
|
| 210 |
+
## Dataset Structure
|
| 211 |
+
|
| 212 |
+
Each benchmark is a separate config. 32764 samples total across 39 benchmarks.
|
| 213 |
+
|
| 214 |
+
### Overview
|
| 215 |
|
| 216 |
+
| Domain | Understanding | Generation | Total Tasks |
|
| 217 |
|--------|:---:|:---:|:---:|
|
| 218 |
| Layout | 4 | 4 | 8 |
|
| 219 |
| Typography | 6 | 2 | 8 |
|
|
|
|
| 224 |
| Lottie | 0 | 2 | 2 |
|
| 225 |
| **Total** | **23** | **16** | **39** |
|
| 226 |
|
| 227 |
+
### All Benchmarks
|
| 228 |
|
| 229 |
+
| Config | Task | Domain | Type | Samples |
|
| 230 |
+
|--------|------|--------|------|--------:|
|
| 231 |
+
| `category-1` | Fine-Grained Category Classification | category | understanding | 989 |
|
| 232 |
+
| `category-2` | User Intent Prediction | category | understanding | 989 |
|
| 233 |
+
| `layout-1` | Intent-to-Layout Generation | layout | generation | 100 |
|
| 234 |
+
| `layout-2` | Visual-Element-Contents-Aware Layout Generation | layout | generation | 1022 |
|
| 235 |
+
| `layout-3` | Aspect-Ratio Adaptation | layout | generation | 13 |
|
| 236 |
+
| `layout-4` | Aspect Ratio Classification | layout | understanding | 989 |
|
| 237 |
+
| `layout-5` | Component Count | layout | understanding | 989 |
|
| 238 |
+
| `layout-6` | Component Classification | layout | understanding | 2943 |
|
| 239 |
+
| `layout-7` | Component Detection | layout | understanding | 988 |
|
| 240 |
+
| `layout-8` | Layer-Aware Object Insertion | layout | generation | 100 |
|
| 241 |
+
| `lottie-1` | Text-to-Lottie Generation | lottie | generation | 50 |
|
| 242 |
+
| `lottie-2` | Image-Text-to-Lottie Generation | lottie | generation | 50 |
|
| 243 |
+
| `svg-1` | SVG Perceptual Q/A | svg | understanding | 300 |
|
| 244 |
+
| `svg-2` | SVG Semantic Q/A | svg | understanding | 300 |
|
| 245 |
+
| `svg-3` | SVG Bug Fixing | svg | understanding | 900 |
|
| 246 |
+
| `svg-4` | SVG Code Optimization | svg | understanding | 300 |
|
| 247 |
+
| `svg-5` | SVG Style Editing | svg | understanding | 900 |
|
| 248 |
+
| `svg-6` | Text-to-SVG Generation | svg | generation | 300 |
|
| 249 |
+
| `svg-7` | Image-to-SVG Generation | svg | generation | 300 |
|
| 250 |
+
| `svg-8` | Image-Text-to-SVG Generation | svg | generation | 300 |
|
| 251 |
+
| `template-1` | Pairwise Layout Matching | template | understanding | 1000 |
|
| 252 |
+
| `template-2` | Layout Retrieval | template | understanding | 200 |
|
| 253 |
+
| `template-3` | Layout Clustering | template | understanding | 50 |
|
| 254 |
+
| `template-4` | Style Completion | template | generation | 140 |
|
| 255 |
+
| `template-5` | Color Transfer | template | generation | 200 |
|
| 256 |
+
| `temporal-1` | Keyframe Ordering | temporal | understanding | 100 |
|
| 257 |
+
| `temporal-2` | Motion Type Classification | temporal | understanding | 1896 |
|
| 258 |
+
| `temporal-3` | Animation Property Extraction | temporal | understanding | 848 |
|
| 259 |
+
| `temporal-4` | Animation Parameter Generation | temporal | generation | 10 |
|
| 260 |
+
| `temporal-5` | Motion Trajectory Generation | temporal | generation | 10 |
|
| 261 |
+
| `temporal-6` | Short-Form Video Layout Generation | temporal | generation | 10 |
|
| 262 |
+
| `typography-1` | Font Family Classification | typography | understanding | 2556 |
|
| 263 |
+
| `typography-2` | Text Color Estimation | typography | understanding | 2498 |
|
| 264 |
+
| `typography-3` | Text Params Estimation | typography | understanding | 2556 |
|
| 265 |
+
| `typography-4` | Style Ranges | typography | understanding | 2556 |
|
| 266 |
+
| `typography-5` | Curved Text | typography | understanding | 2556 |
|
| 267 |
+
| `typography-6` | Text Rotation | typography | understanding | 2556 |
|
| 268 |
+
| `typography-7` | Styled Text Rendering to Layout | typography | generation | 100 |
|
| 269 |
+
| `typography-8` | Styled Text Element Generation | typography | generation | 100 |
|
| 270 |
|
| 271 |
## Schema
|
| 272 |
|
| 273 |
+
Every sample has a consistent schema across all configs:
|
| 274 |
|
| 275 |
| Field | Type | Description |
|
| 276 |
|-------|------|-------------|
|
| 277 |
+
| `sample_id` | string | Unique identifier |
|
| 278 |
+
| `benchmark_id` | string | Config name (e.g. `svg-1`) |
|
| 279 |
+
| `domain` | string | One of: layout, typography, svg, template, temporal, category, lottie |
|
| 280 |
| `task_type` | string | `understanding` or `generation` |
|
| 281 |
+
| `benchmark_name` | string | Human-readable task name |
|
| 282 |
+
| `prompt` | string | The evaluation prompt |
|
| 283 |
+
| `ground_truth` | string | Expected answer (JSON-serialized for structured types) |
|
| 284 |
+
| `image` | Image | Input image when applicable, `null` otherwise |
|
| 285 |
+
| `media_path` | string | Relative path to media (for video or additional images) |
|
| 286 |
| `media_type` | string | `image`, `video`, or `none` |
|
| 287 |
+
| `metadata` | string | JSON with task-specific extra fields (SVG code, options, style specs, etc.) |
|
| 288 |
|
| 289 |
## Evaluation
|
| 290 |
|
| 291 |
+
Use the `lica-bench` package for scoring:
|
| 292 |
|
| 293 |
```bash
|
| 294 |
pip install lica-bench
|
|
|
|
| 299 |
|
| 300 |
registry = BenchmarkRegistry()
|
| 301 |
registry.discover()
|
| 302 |
+
|
| 303 |
bench = registry.get("svg-1")
|
| 304 |
+
# scores = bench.evaluate(predictions, ground_truths)
|
| 305 |
```
|
| 306 |
|
| 307 |
+
See the [lica-bench README](https://github.com/purvanshi/lica-bench) for full CLI and API usage.
|
| 308 |
|
| 309 |
## Citation
|
| 310 |
|