Update README.md
Browse files24 unmodified lines252627282829303132333435353637382 unmodified lines4142434445464445464748103 unmodified lines1521531541561571551561571584 unmodified lines16316416516816616716816949 unmodified lines21922022122422522622722222322424 unmodified lines
CPI-Bench is a comprehensive suite of benchmarks designed to evaluate whether an imagegeneration/editing model is truly capable of handling diverse, real-world, andknowledge-intensive tasks. It consists of four complementary subsets:knowledge-intensive tasks. It consists of three complementary subsets:
| Benchmark | Description | Data Files ||---|---|---|| **CPI-General-Benchmark** | General-purpose image editing tasks covering a wide range of task types | `CPI_general_benchmark/CPI_general_benchmark-*.parquet` || **CPI-Practical-Benchmark** | Image editing tasks grounded in everyday, real-life scenarios | `CPI_practical_benchmark/CPI_practical_benchmark-*.parquet` || **CPI-Intelligent-Benchmark** | Image editing tasks that require domain knowledge and multi-step reasoning, with reference input image(s) | `CPI_intelligent_benchmark-*.parquet` |parquet` |
Each sample provides an editing/generation instruction (and, for image-editing tasks,one or more reference images). Models are expected to produce an output image2 unmodified lines
## ✨ Key Features
- **Four Complementary Subsets**: covers general-purpose editing, life-scenario editing, and knowledge-intensive reasoning for both image-editing (i2i) and text-to-image (t2i) settings.- **Three Complementary Subsets**: covers general-purpose editing, life-scenario editing, and knowledge-intensive reasoning for image-editing (i2i) settings.- **Multi-Image Input Support**: `source` fields may contain one or multiple reference images, supporting complex multi-image editing scenarios.- **Bilingual Instructions**: Chinese and English instructions are provided for103 unmodified lines
First, generate your model's outputs for each sample. If you are not sure which rowcorresponds to which image(s)/instruction, use the export helper first — itauto-detects the dataset schema (image-editing vs. text-to-image) and works for allfour subsets:auto-detects the dataset schema and works for all three subsets:
```bashpython bench_eval_code/export_samples.py \4 unmodified lines```
This produces:- `source_images/` — reference input images per sample (skipped entirely for the t2i subset, which has no reference images)- `source_images/` — reference input images per sample- `samples.jsonl` — per-sample metadata: `sample_index`, `id`, `task`, `instruction`, `rationale` (if present)- `result_template.jsonl` — a template result file; fill in the `result` field with your model's output path after inference
49 unmodified lines- **`cases.jsonl`** — per-sample scoring details (per-dimension scores + raw VLM responses)- **`summary.json`** — aggregated scores, broken down by task type / domain / dimension
For the t2i subset, `summary.json` additionally includes:- `overall_avg_score_pct` — the 1–5 score mapped to a 0–100 percentage scale- `overall_perfect_rate` — the fraction of samples that achieve the maximum score (5) on both dimensions- `by_domain` — scores aggregated by top-level domain (the part of `expert_domain` before the `-`)
## Features
README.md+6-12