TaobaoTmall-AlgorithmProducts commited on
Commit
1007ad6
·
verified ·
1 Parent(s): 50a9cf9

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +151 -53
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  language:
3
  - zh
4
  license: cc-by-nc-nd-4.0
@@ -25,45 +26,93 @@ configs:
25
 
26
  # CommerceGen-Bench
27
 
28
- CommerceGen-Bench is an e-commerce product-poster generation/editing benchmark with 400 cases: 200 single-image cases and 200 two-image cases. This package contains test inputs and frozen instructions, not a training split or reference output images. Instructions and target selling-point text are in Chinese.
29
-
30
- This package contains 400 samples for generating or editing e-commerce product posters: 200 featuring a single image and 200 featuring two images. Each sample includes both fixed PE and no-PE prompts; input images are embedded directly into the Parquet file, eliminating the need for public image links or separate image folder uploads.
31
 
 
32
 
33
  ## Files and configurations
34
 
35
- - `data/single_image_test.parquet`: 200 single-image cases.
36
- - `data/multi_image_test.parquet`: 200 two-image cases.
37
- - `README.md`: dataset configuration, schema, protocol, and known limitations.
 
 
38
 
39
- The `default` configuration loads all 400 cases. `single_image` and `multi_image` load their respective 200-case tracks. All configurations expose a `test` split. Both prompt conditions share the same image inputs; there is no duplicate PE/no-PE image export.
40
 
41
  ## Schema
42
 
43
  | Field | Type | Meaning |
44
  | --- | --- | --- |
45
- | `sample_id` | string | Stable anonymized identifier, `commercegen_0001` through `commercegen_0400`, preserving the original benchmark case order. |
46
  | `track` | string | `single_image_editing` or `multi_image_editing`. |
47
- | `product_image` | Image | First input: the product reference image. |
48
- | `logo_image` | Image or null | Second input: the auxiliary logo reference; null for single-image cases. |
49
- | `instruction_with_pe` | string | Frozen historical enhanced instruction, preserved from the actual PE run. |
50
- | `instruction_without_pe` | string | Frozen strict no-PE instruction: the five-requirement poster prefix, newline-separated selling points, and the strict suffix described below. |
51
- | `target_text_list` | list of strings | Selling-point strings to render in the generated poster. |
52
- | `category` | string | The existing source category label in Chinese; 15 labels are retained without inventing a new category hierarchy. |
53
-
54
- No `hard_case_tags`, unverified PE model name/version, training-isolation claims, business identifiers, source storage paths, credentials, or signed download URLs are added. Original physical source row order is recoverable from `sample_id`; row order after combining Parquet files should not be used as an identifier.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  ## Image and task protocol
57
 
58
- Pass `product_image` first. For a multi-image case, pass `logo_image` second as a separate image; do not concatenate the inputs. Select exactly one instruction column for a given experiment and record that choice with the model settings.
59
 
60
- Images are losslessly encoded as RGB PNG bytes at their original dimensions, with source metadata removed. Their RGB pixels were checked against the source images and both historical PE/no-PE input snapshots. This export does not resize or pad images and does not prescribe a new output resolution. Model-specific resizing, output size, seed, and generation parameters should be recorded separately.
61
 
62
- There is no confirmed curated ground-truth output in this package. Existing model-generated outputs are not labeled as ground truth and are intentionally excluded. This is an input benchmark, not a pixel-reference reconstruction dataset.
63
 
64
  ## PE and no-PE protocol
65
 
66
- `instruction_with_pe` is the existing frozen `prompt.cn_long`; it is not regenerated. The historical PE generator identity/version has not been verified for this package and is not asserted here.
67
 
68
  `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:
69
 
@@ -71,74 +120,123 @@ There is no confirmed curated ground-truth output in this package. Existing mode
71
  请严格按照我给的卖点内容进行生产,不允许添加新的卖点
72
  ```
73
 
74
- The historical B variant used by some open-source runs omits that final suffix. B and C are not identical. To reproduce a documented B run from this package, remove the final newline and that exact suffix only; do not otherwise rewrite the instruction. The packaged C instructions were checked against all 400 saved strict no-PE prompts.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
- Prompt line breaks are preserved. The comma-compacted English-template prompts used for presentation slides are not substituted into these data fields. This package does not make historical runs with different B/C instructions directly comparable by itself.
77
 
78
- ## Known limitations
79
 
80
  The historical PE instructions are preserved without silently repairing them:
81
 
82
- - 33 cases do not contain at least one exact target selling-point string after whitespace normalization (35 missing strings total). This is a substring check, not proof that the corresponding semantic meaning is absent.
83
- - 73 cases contain an image marker beyond the number of actual inputs, including references to `[image3]` although cases have at most two input images.
84
- - The historical PE instruction for `commercegen_0301` includes a merchant storefront address. It is preserved for run fidelity and needs review before public distribution.
85
 
86
- Any corrected prompt set should be versioned separately rather than replacing the prompts used in historical evaluations. No claim that all selling-point text survives PE is made here.
87
 
88
- ## Load locally
89
 
90
- Use a compatible recent `datasets`, `pyarrow`, and `Pillow` environment:
91
 
92
  ```bash
93
  python -m pip install -U datasets pyarrow Pillow
94
  ```
95
 
96
- Load both files after extracting the package:
97
 
98
  ```python
99
- from datasets import load_dataset
100
 
101
- dataset = load_dataset(
102
- "parquet",
103
- data_files={"test": "CommerceGen-Bench/data/*_image_test.parquet"},
104
  split="test",
105
  )
 
 
 
 
 
 
 
 
 
 
 
106
  assert len(dataset) == 400
107
 
108
- sample = dataset[0]
109
- images = [sample["product_image"]]
110
- if sample["logo_image"] is not None:
111
- images.append(sample["logo_image"])
112
  prompt = sample["instruction_with_pe"]
113
  ```
114
 
115
- After uploading the files to the intended Hugging Face dataset repository:
 
 
116
 
117
  ```python
118
- from datasets import load_dataset
119
 
120
- dataset = load_dataset(
121
- "TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
122
- split="test",
123
- )
124
  single = load_dataset(
125
- "TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
126
- "single_image",
127
  split="test",
128
  )
 
129
  multi = load_dataset(
130
- "TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
131
- "multi_image",
132
  split="test",
133
  )
 
 
 
134
  ```
135
 
136
- Private repositories require authentication by an account with access. The repository identifier above is an intended destination, not a claim that it has already been created or uploaded.
 
 
 
 
 
 
137
 
138
- ## Manual upload
139
 
140
- Create a private Hugging Face **dataset** repository named `CommerceGen-Bench`. Extract the ZIP, then upload `README.md` to the repository root and both Parquet files to `data/`. Do not upload only the ZIP: the Viewer needs the extracted Parquet files and configuration. A separate image directory or public image URL is unnecessary because the image bytes are embedded.
141
 
142
- For ModelScope, the same Parquet files can be uploaded to a dataset repository, but ModelScope-specific Viewer/subset configuration and live loading have not been verified. Downloaded files can always be loaded locally with the Parquet example above. Keep private until rights are approved there as well.
 
 
 
 
 
 
 
 
143
 
144
- No repository has been created, and no files have been uploaded by this preparation step.
 
1
  ---
2
+ pretty_name: CommerceGen-Bench
3
  language:
4
  - zh
5
  license: cc-by-nc-nd-4.0
 
26
 
27
  # CommerceGen-Bench
28
 
29
+ 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.
 
 
30
 
31
+ The release contains test inputs only. It provides neither a training split nor reference output images. Input images are stored directly in the Parquet files, so no separate image directory or public image URL is required.
32
 
33
  ## Files and configurations
34
 
35
+ - `data/single_image_test.parquet`: 200 single-image editing cases.
36
+ - `data/multi_image_test.parquet`: 200 multi-image editing cases.
37
+ - `README.md`: dataset card, schema, protocol, limitations, and license.
38
+
39
+ 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.
40
 
41
+ 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.
42
 
43
  ## Schema
44
 
45
  | Field | Type | Meaning |
46
  | --- | --- | --- |
47
+ | `sample_id` | string | Stable anonymized identifier drawn from `commercegen_0001` through `commercegen_0420`. IDs are non-contiguous because 20 cases were removed during curation. |
48
  | `track` | string | `single_image_editing` or `multi_image_editing`. |
49
+ | `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. |
50
+ | `logo_image` | Image or null | Auxiliary logo/reference input for multi-image cases; null for single-image cases. |
51
+ | `instruction_with_pe` | string | Frozen enhanced instruction used in the historical with-PE evaluation. |
52
+ | `instruction_without_pe` | string | Frozen strict no-PE instruction containing the five-requirement prefix, newline-separated selling points, and the strict suffix described below. |
53
+ | `target_text_list` | list of strings | Selling-point strings expected to appear in the generated poster. |
54
+ | `top_level_category` | string | One of 6 top-level product groups. |
55
+ | `category` | string | One of 15 product categories. |
56
+ | `subcategory` | string | Fine-grained product category. The current release contains 47 non-empty subcategories. |
57
+
58
+ 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.
59
+
60
+ ## Dataset composition
61
+
62
+ ### Tracks
63
+
64
+ | Track | Cases |
65
+ | --- | ---: |
66
+ | Single-image editing | 200 |
67
+ | Multi-image editing | 200 |
68
+ | **Total** | **400** |
69
+
70
+ ### Top-level categories
71
+
72
+ | Top-level category | Cases | Share |
73
+ | --- | ---: | ---: |
74
+ | Beauty & Fashion | 157 | 39.25% |
75
+ | Home & Decor | 114 | 28.50% |
76
+ | 3C & Appliances | 50 | 12.50% |
77
+ | Sports & Baby | 25 | 6.25% |
78
+ | Food & Kitchen | 45 | 11.25% |
79
+ | Others | 9 | 2.25% |
80
+ | **Total** | **400** | **100.00%** |
81
+
82
+ ### Product categories
83
+
84
+ | Category | Cases | Share |
85
+ | --- | ---: | ---: |
86
+ | Apparel | 57 | 14.25% |
87
+ | Footwear | 41 | 10.25% |
88
+ | Bags & Accessories | 28 | 7.00% |
89
+ | Beauty & Care | 31 | 7.75% |
90
+ | Home Textile | 22 | 5.50% |
91
+ | Lighting | 20 | 5.00% |
92
+ | Hardware | 40 | 10.00% |
93
+ | Furniture | 32 | 8.00% |
94
+ | Digital 3C | 27 | 6.75% |
95
+ | Home Appliances | 23 | 5.75% |
96
+ | Outdoor | 18 | 4.50% |
97
+ | Baby & Toys | 7 | 1.75% |
98
+ | Kitchenware | 24 | 6.00% |
99
+ | Food & Beverage | 21 | 5.25% |
100
+ | Pets & Miscellaneous | 9 | 2.25% |
101
+ | **Total** | **400** | **100.00%** |
102
+
103
+ The taxonomy was assigned according to the actual primary product shown in each case. Category counts are not artificially equalized.
104
 
105
  ## Image and task protocol
106
 
107
+ 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.
108
 
109
+ 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.
110
 
111
+ 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.
112
 
113
  ## PE and no-PE protocol
114
 
115
+ `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.
116
 
117
  `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:
118
 
 
120
  请严格按照我给的卖点内容进行生产,不允许添加新的卖点
121
  ```
122
 
123
+ The ASCII comma above is preserved exactly as used in the historical evaluation prompt.
124
+
125
+ 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.
126
+
127
+ Prompt line breaks are preserved. Comma-compacted prompt variants used in presentation slides are not substituted into the released instruction fields.
128
+
129
+ ## Evaluation
130
+
131
+ The paper evaluates generated images using Gemini 3 Flash with five dimensions:
132
+
133
+ - Product Fidelity (PF)
134
+ - Instruction Following (IF)
135
+ - Product Integration (PI)
136
+ - Naturalness Detection (ND)
137
+ - Artifacts Detection (AD)
138
+
139
+ Overall is the arithmetic mean of the five dimension scores:
140
+
141
+ ```text
142
+ Overall = (PF + IF + PI + ND + AD) / 5
143
+ ```
144
+
145
+ Single-image and multi-image tracks must be reported separately. With-PE and without-PE conditions must also be reported separately.
146
+
147
+ For reproducible comparisons, record the exact generation model version, inference configuration, random seed, judge model ID, judge decoding configuration, evaluation prompt version, number of repeated judgments, and score-aggregation procedure.
148
 
149
+ Because commercial poster generation admits multiple valid layouts and visual treatments, this benchmark does not use a single pixel-level reference as the primary evaluation target.
150
 
151
+ ## Important reproducibility notes
152
 
153
  The historical PE instructions are preserved without silently repairing them:
154
 
155
+ - 29 cases do not contain at least one exact target selling-point string after removing whitespace differences (31 missing strings in total). This substring check does not prove that the corresponding semantic meaning is absent.
156
+ - 67 cases contain an image marker beyond the number of actual inputs, including references to `[image3]` although cases have at most two input images.
157
+ - The historical PE instruction for `commercegen_0301` includes a merchant storefront address. This case must be reviewed before public distribution.
158
 
159
+ Any corrected prompt set should be released as a separately versioned configuration rather than silently replacing the prompts used in historical evaluations.
160
 
161
+ ## Load from Hugging Face
162
 
163
+ Install a recent compatible environment:
164
 
165
  ```bash
166
  python -m pip install -U datasets pyarrow Pillow
167
  ```
168
 
169
+ Load the two tracks separately:
170
 
171
  ```python
172
+ from datasets import load_dataset, concatenate_datasets
173
 
174
+ single = load_dataset(
175
+ "TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
176
+ "single_image",
177
  split="test",
178
  )
179
+
180
+ multi = load_dataset(
181
+ "TaobaoTmall-AlgorithmProducts/CommerceGen-Bench",
182
+ "multi_image",
183
+ split="test",
184
+ )
185
+
186
+ assert len(single) == 200
187
+ assert len(multi) == 200
188
+
189
+ dataset = concatenate_datasets([single, multi])
190
  assert len(dataset) == 400
191
 
192
+ sample = multi[0]
193
+ input_images = [sample["product_image"], sample["logo_image"]]
 
 
194
  prompt = sample["instruction_with_pe"]
195
  ```
196
 
197
+ Private repositories require authentication by an account with access.
198
+
199
+ ## Load local Parquet files
200
 
201
  ```python
202
+ from datasets import load_dataset, concatenate_datasets
203
 
 
 
 
 
204
  single = load_dataset(
205
+ "parquet",
206
+ data_files={"test": "data/single_image_test.parquet"},
207
  split="test",
208
  )
209
+
210
  multi = load_dataset(
211
+ "parquet",
212
+ data_files={"test": "data/multi_image_test.parquet"},
213
  split="test",
214
  )
215
+
216
+ dataset = concatenate_datasets([single, multi])
217
+ assert len(dataset) == 400
218
  ```
219
 
220
+ ## License
221
+
222
+ CommerceGen-Bench is released under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) License.
223
+
224
+ - The dataset may be copied and redistributed for non-commercial purposes with appropriate attribution.
225
+ - Commercial use is prohibited.
226
+ - Modified or adapted versions of the dataset may not be publicly distributed.
227
 
228
+ License terms: https://creativecommons.org/licenses/by-nc-nd/4.0/
229
 
230
+ 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.
231
 
232
+ ## Citation
233
+
234
+ ```bibtex
235
+ @article{xu2026commercegenstudio,
236
+ title={CommerceGen-Studio: An End-to-End Framework for Commercial-Grade Main-Image Generation},
237
+ author={Xu, Xiaoli and Wu, Zhengtao and Xu, Zhengze and others},
238
+ year={2026}
239
+ }
240
+ ```
241
 
242
+ Please replace this provisional citation with the full author list and arXiv or conference metadata when available.