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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- image-generation
|
| 7 |
+
- benchmark
|
| 8 |
+
- evaluation
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# ConceptEdit: Unlocking the Potential of Image Editing via Concept Scaling and Dense Supervision
|
| 12 |
+
|
| 13 |
+
[](https://arxiv.org/abs/2608.16812) [](https://github.com/inclusionAI/ConceptEdit) [](https://huggingface.co/datasets/inclusionAI/ConceptEdit-12M) [](https://huggingface.co/datasets/inclusionAI/ConceptEdit-Bench)
|
| 14 |
+
|
| 15 |
+
ConceptEdit-Bench is the evaluation benchmark for ConceptEdit. It contains 1,000 curated image editing test cases across 6 major editing categories. Each test case includes a source image and a JSON metadata file with the edit instruction, taxonomy information, and a relative path to the source image.
|
| 16 |
+
|
| 17 |
+
The benchmark evaluation code is provided in the ConceptEdit GitHub repository:
|
| 18 |
+
|
| 19 |
+
```text
|
| 20 |
+
https://github.com/inclusionAI/ConceptEdit
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Files
|
| 24 |
+
|
| 25 |
+
This Hugging Face dataset repository provides the benchmark data package:
|
| 26 |
+
|
| 27 |
+
```text
|
| 28 |
+
conceptbench_data.tar
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
The tar file contains one top-level directory:
|
| 32 |
+
|
| 33 |
+
```text
|
| 34 |
+
data/
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## How to extract
|
| 38 |
+
|
| 39 |
+
Extract the benchmark package with:
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
mkdir -p ConceptEdit-Bench
|
| 43 |
+
|
| 44 |
+
tar -xf conceptbench_data.tar -C ConceptEdit-Bench
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
After extraction, the expected layout is:
|
| 48 |
+
|
| 49 |
+
```text
|
| 50 |
+
ConceptEdit-Bench/
|
| 51 |
+
└── data/
|
| 52 |
+
├── taxonomy.json
|
| 53 |
+
├── images/
|
| 54 |
+
│ ├── <image_id>.jpg
|
| 55 |
+
│ └── ...
|
| 56 |
+
├── advanced_domain_application/
|
| 57 |
+
├── general_object_editing/
|
| 58 |
+
├── generation_composition/
|
| 59 |
+
├── global_enhancement_atmosphere/
|
| 60 |
+
├── portrait_human_specialized/
|
| 61 |
+
└── text_graphic_design/
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
Each benchmark case JSON is stored under the taxonomy hierarchy:
|
| 65 |
+
|
| 66 |
+
```text
|
| 67 |
+
data/<category>/<sub_category>/<task>/<detail>.json
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
The source images are stored under:
|
| 71 |
+
|
| 72 |
+
```text
|
| 73 |
+
data/images/
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
You can inspect the tar file without extracting it:
|
| 77 |
+
|
| 78 |
+
```bash
|
| 79 |
+
tar -tf conceptbench_data.tar | head
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Expected data size
|
| 83 |
+
|
| 84 |
+
| Item | Count |
|
| 85 |
+
|---|---:|
|
| 86 |
+
| Case JSON files | 1,000 |
|
| 87 |
+
| Source images | 979 |
|
| 88 |
+
| Top-level categories | 6 |
|
| 89 |
+
|
| 90 |
+
Some source images are shared by multiple benchmark cases, so the number of source images is smaller than the number of case JSON files.
|
| 91 |
+
|
| 92 |
+
## JSON format
|
| 93 |
+
|
| 94 |
+
Each case JSON keeps only the fields needed for benchmark inference and evaluation:
|
| 95 |
+
|
| 96 |
+
```json
|
| 97 |
+
{
|
| 98 |
+
"caption": "source image caption",
|
| 99 |
+
"edit_concept": {
|
| 100 |
+
"category": "...",
|
| 101 |
+
"sub_category": "...",
|
| 102 |
+
"task": "...",
|
| 103 |
+
"detail": "..."
|
| 104 |
+
},
|
| 105 |
+
"instruction_en": "short English edit instruction",
|
| 106 |
+
"instruction_zh": "short Chinese edit instruction",
|
| 107 |
+
"detailed_instruction_en": "detailed English edit instruction",
|
| 108 |
+
"detailed_instruction_zh": "detailed Chinese edit instruction",
|
| 109 |
+
"local_image_path": "images/example.jpg"
|
| 110 |
+
}
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
Field descriptions:
|
| 114 |
+
|
| 115 |
+
- `caption`: short English caption for the source image.
|
| 116 |
+
- `edit_concept`: taxonomy information for the editing case.
|
| 117 |
+
- `instruction_en` / `instruction_zh`: short English and Chinese edit instructions.
|
| 118 |
+
- `detailed_instruction_en` / `detailed_instruction_zh`: detailed English and Chinese edit instructions.
|
| 119 |
+
- `local_image_path`: relative path to the source image under the extracted `data/` directory.
|
| 120 |
+
|
| 121 |
+
For example, if a JSON file contains:
|
| 122 |
+
|
| 123 |
+
```json
|
| 124 |
+
{
|
| 125 |
+
"local_image_path": "images/example.jpg"
|
| 126 |
+
}
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
then the corresponding source image should be located at:
|
| 130 |
+
|
| 131 |
+
```text
|
| 132 |
+
ConceptEdit-Bench/data/images/example.jpg
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
All paths inside the released JSON files are relative paths. No local absolute paths are included.
|
| 136 |
+
|
| 137 |
+
## Using with the evaluation code
|
| 138 |
+
|
| 139 |
+
Clone the ConceptEdit code repository and place the extracted `data/` directory under the benchmark code directory expected by the scripts:
|
| 140 |
+
|
| 141 |
+
```bash
|
| 142 |
+
git clone https://github.com/inclusionAI/ConceptEdit.git
|
| 143 |
+
cd ConceptEdit/benchmark
|
| 144 |
+
|
| 145 |
+
# place or symlink the extracted data directory here
|
| 146 |
+
# expected path: ConceptEdit/benchmark/data/
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
The benchmark scripts read cases from `./data` and use `local_image_path` to find source images.
|
| 150 |
+
|
| 151 |
+
## Source Image Acknowledgement
|
| 152 |
+
|
| 153 |
+
The source images in ConceptEdit-12M are based on images from [Fine-T2I](https://huggingface.co/datasets/ma-xu/fine-t2i).
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
## Citation
|
| 157 |
+
|
| 158 |
+
If you find this benchmark useful, please cite the ConceptEdit paper and refer to the project repository:
|
| 159 |
+
|
| 160 |
+
```bibtex
|
| 161 |
+
@article{cui2026unlocking,
|
| 162 |
+
title={Unlocking the Potential of Image Editing via Concept Scaling and Dense Supervision},
|
| 163 |
+
author={Cui, Long and Liu, Xiaoqian and Qin, Qi and Xin, Yi and Lin, Tao and Li, Jianguo and Zhang, Linfeng},
|
| 164 |
+
journal={arXiv preprint arXiv:2608.16812},
|
| 165 |
+
year={2026}
|
| 166 |
+
}
|
| 167 |
+
```
|
| 168 |
+
|