Upload folder using huggingface_hub
Browse files
PaintBench/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14ba47beef11acde22f37faa89dab962c8d1061a060aa5dcbf8ff7955d13fbd7
|
| 3 |
+
size 16940626
|
README.md
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: PaintBench
|
| 6 |
+
task_categories:
|
| 7 |
+
- image-to-image
|
| 8 |
+
- image-text-to-image
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
tags:
|
| 12 |
+
- benchmark
|
| 13 |
+
- image-editing
|
| 14 |
+
- visual-editing
|
| 15 |
+
- paintbench
|
| 16 |
+
- evaluation
|
| 17 |
+
dataset_info:
|
| 18 |
+
- config_name: PaintBench
|
| 19 |
+
features:
|
| 20 |
+
- name: category
|
| 21 |
+
dtype: string
|
| 22 |
+
- name: task
|
| 23 |
+
dtype: string
|
| 24 |
+
- name: mode
|
| 25 |
+
dtype: string
|
| 26 |
+
- name: problem_id
|
| 27 |
+
dtype: int32
|
| 28 |
+
- name: instruction
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: input_image
|
| 31 |
+
dtype: image
|
| 32 |
+
- name: answer_image
|
| 33 |
+
dtype: image
|
| 34 |
+
- name: metadata
|
| 35 |
+
dtype: string
|
| 36 |
+
splits:
|
| 37 |
+
- name: test
|
| 38 |
+
num_bytes: 17727512
|
| 39 |
+
num_examples: 1050
|
| 40 |
+
download_size: 16940626
|
| 41 |
+
dataset_size: 17727512
|
| 42 |
+
- config_name: TinyGrafixBench
|
| 43 |
+
features:
|
| 44 |
+
- name: category
|
| 45 |
+
dtype: string
|
| 46 |
+
- name: task
|
| 47 |
+
dtype: string
|
| 48 |
+
- name: mode
|
| 49 |
+
dtype: string
|
| 50 |
+
- name: problem_id
|
| 51 |
+
dtype: int32
|
| 52 |
+
- name: instruction
|
| 53 |
+
dtype: string
|
| 54 |
+
- name: input_image
|
| 55 |
+
dtype: image
|
| 56 |
+
- name: answer_image
|
| 57 |
+
dtype: image
|
| 58 |
+
- name: metadata
|
| 59 |
+
dtype: string
|
| 60 |
+
splits:
|
| 61 |
+
- name: test
|
| 62 |
+
num_bytes: 51745870
|
| 63 |
+
num_examples: 600
|
| 64 |
+
download_size: 51552058
|
| 65 |
+
dataset_size: 51745870
|
| 66 |
+
- config_name: ablations
|
| 67 |
+
features:
|
| 68 |
+
- name: category
|
| 69 |
+
dtype: string
|
| 70 |
+
- name: task
|
| 71 |
+
dtype: string
|
| 72 |
+
- name: mode
|
| 73 |
+
dtype: string
|
| 74 |
+
- name: problem_id
|
| 75 |
+
dtype: int32
|
| 76 |
+
- name: instruction
|
| 77 |
+
dtype: string
|
| 78 |
+
- name: input_image
|
| 79 |
+
dtype: image
|
| 80 |
+
- name: answer_image
|
| 81 |
+
dtype: image
|
| 82 |
+
- name: metadata
|
| 83 |
+
dtype: string
|
| 84 |
+
splits:
|
| 85 |
+
- name: test
|
| 86 |
+
num_bytes: 20114921
|
| 87 |
+
num_examples: 1080
|
| 88 |
+
download_size: 19106533
|
| 89 |
+
dataset_size: 20114921
|
| 90 |
+
configs:
|
| 91 |
+
- config_name: PaintBench
|
| 92 |
+
default: true
|
| 93 |
+
data_files:
|
| 94 |
+
- split: test
|
| 95 |
+
path: PaintBench/test-*
|
| 96 |
+
- config_name: TinyGrafixBench
|
| 97 |
+
data_files:
|
| 98 |
+
- split: test
|
| 99 |
+
path: TinyGrafixBench/test-*
|
| 100 |
+
- config_name: ablations
|
| 101 |
+
data_files:
|
| 102 |
+
- split: test
|
| 103 |
+
path: ablations/test-*
|
| 104 |
+
---
|
| 105 |
+
|
| 106 |
+
# PaintBench
|
| 107 |
+
|
| 108 |
+
**A precise, deterministic visual editing benchmark.** PaintBench evaluates whether generative models can execute MS-Paint-style image editing operations with pixel-level correctness. Every problem is a `(input_image, instruction, answer_image)` triplet, generated programmatically so the answer is pixel-exact and the answer distribution is known by construction.
|
| 109 |
+
|
| 110 |
+
This dataset bundles three sibling benchmarks that share one generation and evaluation pipeline:
|
| 111 |
+
|
| 112 |
+
| Subset (config) | Rows | Scope |
|
| 113 |
+
|---|---|---|
|
| 114 |
+
| **PaintBench** (default) | 1,050 | 20 canonical tasks (35 task-modes) grouped into 4 categories — `geometric_transformation`, `structural_manipulation`, `color_change`, `symbolic_reasoning`. |
|
| 115 |
+
| **TinyGrafixBench** | 600 | Chart-edit mini-benchmark: 5 chart types (`bar_chart`, `heatmap`, `line_chart`, `network`, `scatter_plot`) × 4 edit subtasks per chart — a real-world analog of the primitive operations. The chart type is the `category` and the edit subtask is the `task` (mirrors the PaintBench grouping). |
|
| 116 |
+
| **ablations** | 1,080 | Per-axis variation studies on 4 focal PaintBench tasks (`removal_attribute`, `recolor_color_code`, `copying`, `preservation`) × 9 variants. Every row has `category="ablation"`; the focal task is the `task` and the variant (`baseline`, `horizontal`, `vertical`, `small`, `nonstandard`, `striped`, `n16`, `n36`, `n64`) is the `mode`. |
|
| 117 |
+
|
| 118 |
+
Each subset has a single `test` split — the benchmarks are intended for evaluation, not training.
|
| 119 |
+
|
| 120 |
+
## Quick start
|
| 121 |
+
|
| 122 |
+
```python
|
| 123 |
+
from datasets import load_dataset
|
| 124 |
+
|
| 125 |
+
ds = load_dataset("PaintBench/PaintBench", split="test")
|
| 126 |
+
tgb = load_dataset("PaintBench/PaintBench", "TinyGrafixBench", split="test")
|
| 127 |
+
abl = load_dataset("PaintBench/PaintBench", "ablations", split="test")
|
| 128 |
+
|
| 129 |
+
ex = ds[0]
|
| 130 |
+
ex["category"] # top-level group, e.g. "color_change"
|
| 131 |
+
ex["task"] # canonical task, e.g. "flood_fill"
|
| 132 |
+
ex["mode"] # subtask, e.g. "background" ("" when the task has no modes)
|
| 133 |
+
ex["instruction"] # natural-language edit instruction
|
| 134 |
+
ex["input_image"] # PIL.Image — the source canvas
|
| 135 |
+
ex["answer_image"] # PIL.Image — pixel-exact ground truth
|
| 136 |
+
ex["metadata"] # JSON string — full per-problem spec (seed, scene_shapes, params, ...)
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+
Group by category / task / mode:
|
| 140 |
+
|
| 141 |
+
```python
|
| 142 |
+
from collections import Counter
|
| 143 |
+
Counter(ds["category"]).most_common() # 4 PaintBench categories
|
| 144 |
+
Counter(tgb["category"]).most_common() # 5 chart types
|
| 145 |
+
Counter(abl["mode"]).most_common() # 9 ablation variants
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
## Schema
|
| 149 |
+
|
| 150 |
+
All three configs share a uniform schema:
|
| 151 |
+
|
| 152 |
+
| Column | Type | Description |
|
| 153 |
+
|---|---|---|
|
| 154 |
+
| `category` | `string` | Top-level grouping. **PaintBench**: one of `geometric_transformation` / `structural_manipulation` / `color_change` / `symbolic_reasoning`. **TinyGrafixBench**: chart type (`bar_chart`, `heatmap`, `line_chart`, `network`, `scatter_plot`). **ablations**: `"ablation"`. |
|
| 155 |
+
| `task` | `string` | Operation within the category. **PaintBench**: canonical task (`flood_fill`, `recolor`, `translation`, ...). **TinyGrafixBench**: chart-edit subtask (`add_bar`, `sort_bars`, `mask_cells`, ...). **ablations**: focal task identifier (`removal_attribute`, `recolor_color_code`, `copying`, `preservation`). |
|
| 156 |
+
| `mode` | `string` | Subtask / variant within the `task`. **PaintBench**: subtask (`background`, `foreground`, `external`, ...) or `""` when the task has no modes. **TinyGrafixBench**: always `""`. **ablations**: variant (`baseline`, `horizontal`, `vertical`, `small`, `nonstandard`, `striped`, `n16`, `n36`, `n64`). The on-disk `problems.jsonl` keeps the empty slots as JSON `null`; the dataset normalizes to `""` so the column stays a non-nullable `string`. |
|
| 157 |
+
| `problem_id` | `int32` | Zero-indexed id within the `(category, task, mode)` cell. |
|
| 158 |
+
| `instruction` | `string` | Natural-language edit instruction. |
|
| 159 |
+
| `input_image` | `image` | Source canvas (PNG, embedded). |
|
| 160 |
+
| `answer_image` | `image` | Pixel-exact ground-truth output (PNG, embedded). |
|
| 161 |
+
| `metadata` | `string` | JSON-encoded per-problem spec — includes the random seed, scene composition, the on-disk folder name (`task_mode`), and any per-subset extras (`base_task_canonical` / `base_task_mode` for `ablations`; `params` / `scene_shapes` / colors for `PaintBench`). Useful for filtering, grouping, and exact regeneration. |
|
| 162 |
+
|
| 163 |
+
To pull structured fields out of `metadata`:
|
| 164 |
+
|
| 165 |
+
```python
|
| 166 |
+
import json
|
| 167 |
+
ex = ds[0]
|
| 168 |
+
meta = json.loads(ex["metadata"])
|
| 169 |
+
meta["seed"] # for deterministic regeneration
|
| 170 |
+
meta["task_mode"] # on-disk folder name (= "<task>_<mode>" or "<task>")
|
| 171 |
+
meta.get("base_task_canonical") # populated only for the `ablations` config
|
| 172 |
+
meta.get("scene_shapes") # PaintBench scene composition
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
## Evaluation
|
| 176 |
+
|
| 177 |
+
PaintBench uses pointwise CIE76 ΔE between the model's output and `answer_image`. Per-pixel ΔE values are thresholded at {0, 2, 5, 10} and aggregated to per-problem and per-task pass rates. The reference implementation lives in the [project repo](https://github.com/PaintBench/paintbench-internal).
|
| 178 |
+
|
| 179 |
+
## Source
|
| 180 |
+
|
| 181 |
+
The benchmarks are generated programmatically — there is no human curation step. Every problem is reproducible from its `metadata.seed`. See the [project repo](https://github.com/PaintBench/paintbench-internal) for the generation pipeline and a full per-task description.
|
| 182 |
+
|
| 183 |
+
## License
|
| 184 |
+
|
| 185 |
+
Released under the [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) license. You are free to share and adapt the dataset, including for commercial use, with attribution.
|
| 186 |
+
|
| 187 |
+
## Citation
|
| 188 |
+
|
| 189 |
+
Citation will be added upon paper publication. For now, please reference this dataset as:
|
| 190 |
+
|
| 191 |
+
```bibtex
|
| 192 |
+
@misc{paintbench2026,
|
| 193 |
+
title = {PaintBench: A Precise, Deterministic Visual Editing Benchmark},
|
| 194 |
+
author = {PaintBench team},
|
| 195 |
+
year = {2026},
|
| 196 |
+
url = {https://huggingface.co/datasets/PaintBench/PaintBench}
|
| 197 |
+
}
|
| 198 |
+
```
|
TinyGrafixBench/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eff713d5f07311a5fcf9d17173fbe1d0f9716a14f6e92812dfc6f6240c2158ef
|
| 3 |
+
size 51552058
|
ablations/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85113fb9d87390de811cddd23c4a5a9bad2b9742849f36ff9270df26462569c7
|
| 3 |
+
size 19106533
|