Datasets:
Download README.md from TaobaoTmall-AlgorithmProducts/CommerceGen-Bench: direct link, hf CLI and curl.
- Browser
- Download file 7.61 kB
-
https://huggingface.co/datasets/TaobaoTmall-AlgorithmProducts/CommerceGen-Bench/resolve/main/README.md
- Command line
-
hf download hf://datasets/TaobaoTmall-AlgorithmProducts/CommerceGen-Bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/TaobaoTmall-AlgorithmProducts/CommerceGen-Bench/resolve/main/README.md
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:
请严格按照我给的卖点内容进行生产,不允许添加新的卖点
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:
Overall = (PF + IF + PI + ND + AD) / 5
Load from Hugging Face
Install a recent compatible environment:
python -m pip install -U datasets pyarrow Pillow
Load the two tracks separately:
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
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
@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.