Datasets:
File size: 7,610 Bytes
9e6842b 1007ad6 ac8772e 895a9c5 ac8772e 9e6842b ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 68b6080 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 ac8772e 1007ad6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | ---
pretty_name: CommerceGen-Bench
language:
- zh
license: cc-by-nc-nd-4.0
task_categories:
- image-to-image
tags:
- e-commerce
- image-editing
- multi-image-editing
- visual-text-rendering
- benchmark
size_categories:
- n<1K
configs:
- config_name: single_image
data_files:
- split: test
path: data/single_image_test.parquet
- config_name: multi_image
data_files:
- split: test
path: data/multi_image_test.parquet
---
# CommerceGen-Bench
CommerceGen-Bench is an e-commerce product-poster generation and editing benchmark containing 400 test cases: 200 single-image editing cases and 200 multi-image editing cases. Each case includes fixed with-PE and without-PE instructions, Chinese target selling-point text, embedded input images, and a three-level product taxonomy.
## Files and configurations
- `data/single_image_test.parquet`: 200 single-image editing cases.
- `data/multi_image_test.parquet`: 200 multi-image editing cases.
- `README.md`: dataset card, schema, protocol, limitations, and license.
The `single_image` and `multi_image` configurations each expose a `test` split containing 200 cases. Both prompt conditions share the same input images; there is no duplicated with-PE/without-PE image export.
There is intentionally no `default` configuration. Load the two tracks separately and concatenate them locally if a combined 400-case dataset is required. Keeping the physical Parquet files assigned to only one configuration avoids duplicated size accounting in the Hugging Face Dataset Viewer.
## Schema
| Field | Type | Meaning |
| --- | --- | --- |
| `sample_id` | string | Stable anonymized identifier drawn from `commercegen_0001` through `commercegen_0420`. IDs are non-contiguous because 20 cases were removed during curation. |
| `track` | string | `single_image_editing` or `multi_image_editing`. |
| `product_image` | Image | Primary product input. It is the only image input for single-image cases and the first image input for multi-image cases. |
| `logo_image` | Image or null | Auxiliary logo/reference input for multi-image cases; null for single-image cases. |
| `instruction_with_pe` | string | Frozen enhanced instruction used in the historical with-PE evaluation. |
| `instruction_without_pe` | string | Frozen strict no-PE instruction containing the five-requirement prefix, newline-separated selling points, and the strict suffix described below. |
| `target_text_list` | list of strings | Selling-point strings expected to appear in the generated poster. |
| `top_level_category` | string | One of 6 top-level product groups. |
| `category` | string | One of 15 product categories. |
| `subcategory` | string | Fine-grained product category. The current release contains 47 non-empty subcategories. |
Business identifiers, credentials, signed download URLs, private storage locations, and source filesystem information are not included in this public release. Embedded image fields contain image bytes only and do not expose source file locations.
## Dataset composition
### Tracks
| Track | Cases |
| --- | ---: |
| Single-image editing | 200 |
| Multi-image editing | 200 |
| **Total** | **400** |
The taxonomy was assigned according to the actual primary product shown in each case. Category counts are not artificially equalized.
## Image and task protocol
Pass `product_image` first. For a multi-image case, pass `logo_image` second as a separate image; do not concatenate the two inputs. Select exactly one instruction column for a given experiment and record the prompt condition together with all model settings.
The release does not prescribe a generation resolution. Model-specific input resizing, output size, sampling steps, guidance scale, random seed, and other generation parameters should be recorded separately.
Generated images should preserve the product identity and, for multi-image cases, accurately reproduce the auxiliary logo/reference condition. All requested selling-point text should be rendered correctly and completely according to the selected instruction.
## PE and no-PE protocol
`instruction_with_pe` contains the frozen enhanced instruction generated by Qwen3.8-Max for the experiments reported in the paper. These instructions are released as fixed benchmark inputs and are not regenerated at evaluation time.
`instruction_without_pe` uses the historical strict C variant: the fixed five-requirement poster prefix, the unnumbered selling points joined with newlines, followed by exactly:
```text
请严格按照我给的卖点内容进行生产,不允许添加新的卖点
```
The ASCII comma above is preserved exactly as used in the historical evaluation prompt.
The historical B variant used by some open-source runs omits the final suffix. B and C are not identical. To reproduce a documented B run, remove only the final newline and the exact suffix above; do not otherwise rewrite the instruction.
Prompt line breaks are preserved. Comma-compacted prompt variants used in presentation slides are not substituted into the released instruction fields.
## Evaluation
The paper evaluates generated images using Gemini 3 Flash with five dimensions:
- Product Fidelity (PF)
- Instruction Following (IF)
- Product Integration (PI)
- Naturalness Detection (ND)
- Artifacts Detection (AD)
Overall is the arithmetic mean of the five dimension scores:
```text
Overall = (PF + IF + PI + ND + AD) / 5
```
## Load from Hugging Face
Install a recent compatible environment:
```bash
python -m pip install -U datasets pyarrow Pillow
```
Load the two tracks separately:
```python
from datasets import load_dataset, concatenate_datasets
single = load_dataset(
"TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
"single_image",
split="test",
)
multi = load_dataset(
"TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
"multi_image",
split="test",
)
assert len(single) == 200
assert len(multi) == 200
dataset = concatenate_datasets([single, multi])
assert len(dataset) == 400
sample = multi[0]
input_images = [sample["product_image"], sample["logo_image"]]
prompt = sample["instruction_with_pe"]
```
Private repositories require authentication by an account with access.
## Load local Parquet files
```python
from datasets import load_dataset, concatenate_datasets
single = load_dataset(
"parquet",
data_files={"test": "data/single_image_test.parquet"},
split="test",
)
multi = load_dataset(
"parquet",
data_files={"test": "data/multi_image_test.parquet"},
split="test",
)
dataset = concatenate_datasets([single, multi])
assert len(dataset) == 400
```
## License
CommerceGen-Bench is released under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) License.
- The dataset may be copied and redistributed for non-commercial purposes with appropriate attribution.
- Commercial use is prohibited.
- Modified or adapted versions of the dataset may not be publicly distributed.
License terms: https://creativecommons.org/licenses/by-nc-nd/4.0/
Brand names and trademarks remain the property of their respective owners. Use of this dataset must also comply with applicable privacy, publicity, trademark, and other third-party rights.
## Citation
```bibtex
@article{xu2026commercegenstudio,
title={CommerceGen-Studio: An End-to-End Framework for Commercial-Grade Main-Image Generation},
author={Xu, Xiaoli and Wu, Zhengtao and Xu, Zhengze and others},
year={2026}
}
```
Please replace this provisional citation with the full author list and arXiv or conference metadata when available.
|