README: license section and dataset citations

#11
by begumcig - opened
Files changed (3) hide show
  1. README.md +68 -0
  2. app.py +33 -0
  3. ui.py +45 -0
README.md CHANGED
@@ -30,6 +30,74 @@ include only models with the required score and price or timing. Image-to-video
30
  sample media is not included in these exports.
31
  Rapidata Elo comes directly from these exports.
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  ## Run locally
34
 
35
  From the repo root:
 
30
  sample media is not included in these exports.
31
  Rapidata Elo comes directly from these exports.
32
 
33
+ ## License
34
+
35
+ The P-Bench code (the Gradio app, `app.py`, `ui.py`, `model_display.py`) is
36
+ released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
37
+
38
+ The data in `data/` is **not** covered by that license. Third-party benchmark
39
+ prompts and leaderboard data keep the license or terms of their original
40
+ source, and Pruna AI's own data is all rights reserved:
41
+
42
+ | Data in this Space | Source | License / terms |
43
+ | --- | --- | --- |
44
+ | `data/oneig_combined/prompts.jsonl`: 299 OneIG-Bench prompts (anime, human and object alignment) | [OneIG-Bench](https://huggingface.co/datasets/OneIG-Bench/OneIG-Bench) (Chang et al., 2025) | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) |
45
+ | `data/qwen_image_bench_combined/prompts.jsonl`: 100 Qwen-Image-Bench prompts | [Qwen-Image-Bench](https://huggingface.co/datasets/Qwen/Qwen-Image-Bench) (Li et al., 2026) | [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
46
+ | `data/video_generation_combined/prompts.jsonl`: 90 VBench-2.0 prompts | [VBench-2.0](https://github.com/Vchitect/VBench/tree/master/VBench-2.0) (Zheng et al., 2025) | [Apache 2.0](https://github.com/Vchitect/VBench/blob/master/LICENSE) |
47
+ | `data/video_editing_combined/prompts.jsonl`: 78 video-editing prompts and their source videos | Pruna AI internal video-editing set | © Pruna AI, all rights reserved |
48
+ | `data/arena_ai_text_to_image_leaderboard.csv` | [Arena](https://arena.ai/leaderboard/text-to-image/overall) text-to-image leaderboard (formerly LMArena) | [Arena terms of use](https://arena.ai/terms) |
49
+ | `data/artificial_analysis_text_to_image_leaderboard.csv` | [Artificial Analysis](https://artificialanalysis.ai/) text-to-image arena | [Artificial Analysis terms of use](https://artificialanalysis.ai/docs/legal/Terms-of-Use.pdf) |
50
+
51
+ The OneIG-Bench, Qwen-Image-Bench and VBench-2.0 prompts are copied verbatim.
52
+ P-Bench uses a selection of each benchmark and adds its own prompt IDs. The
53
+ generated images and videos come from the listed models. Human preference
54
+ scores (Elo) were collected by Pruna AI through Datapoint and Rapidata.
55
+
56
+ Because the OneIG-Bench prompts are licensed for non-commercial use only
57
+ (CC BY-NC 4.0), any reuse of `data/oneig_combined/` must follow that license.
58
+
59
+ All other data in `data/` was created by Pruna AI and is © Pruna AI, all
60
+ rights reserved. This covers the video-editing prompts and source videos, the
61
+ Elo exports (for example `t2v-pro.csv`, `i2v-pro.csv`,
62
+ `video-editing-leaderboard.csv`) and the price and generation-time CSVs.
63
+
64
+ ## Citation
65
+
66
+ If you use P-Bench, please cite it together with the benchmarks whose prompts it uses:
67
+
68
+ ```bibtex
69
+ @misc{P-Bench,
70
+ title={P-Bench: A Leaderboard for Image and Video Generation Models},
71
+ author={PrunaAI},
72
+ year={2026},
73
+ howpublished={\url{https://huggingface.co/spaces/PrunaAI/P-Bench}}
74
+ }
75
+
76
+ @article{chang2025oneig,
77
+ title={OneIG-Bench: Omni-dimensional Nuanced Evaluation for Image Generation},
78
+ author={Jingjing Chang and Yixiao Fang and Peng Xing and Shuhan Wu and Wei Cheng and Rui Wang and Xianfang Zeng and Gang Yu and Hai-Bao Chen},
79
+ journal={arXiv preprint arXiv:2506.07977},
80
+ year={2025}
81
+ }
82
+
83
+ @misc{li2026qwenimagebenchgenerationcreationtexttoimage,
84
+ title={Qwen-Image-Bench: From Generation to Creation in Text-to-Image Evaluation},
85
+ author={Niantong Li and Guangzheng Hu and Weixu Qiao and Ying Ba and Qichen Hong and Shijun Shen and Jinlin Wang and Fan Zhou and Jianye Kang and Xin Shang and Ziyi He and Wei Wang and Dalin Li and Jiahao Li and Jie Zhang and Kaiyuan Gao and Kun Yan and Lihan Jiang and Ningyuan Tang and Shengming Yin and Tianhe Wu and Xiao Xu and Xiaoyue Chen and Yuxiang Chen and Yan Shu and Yanran Zhang and Yilei Chen and Yixian Xu and Zekai Zhang and Zhendong Wang and Zihao Liu and Zikai Zhou and Hongzhu Shi and Yi Wang and Bing Zhao and Hu Wei and Lin Qu and Chenfei Wu},
86
+ year={2026},
87
+ eprint={2605.28091},
88
+ archivePrefix={arXiv},
89
+ primaryClass={cs.CV},
90
+ url={https://arxiv.org/abs/2605.28091}
91
+ }
92
+
93
+ @article{zheng2025vbench2,
94
+ title={{VBench-2.0}: Advancing Video Generation Benchmark Suite for Intrinsic Faithfulness},
95
+ author={Zheng, Dian and Huang, Ziqi and Liu, Hongbo and Zou, Kai and He, Yinan and Zhang, Fan and Zhang, Yuanhan and He, Jingwen and Zheng, Wei-Shi and Qiao, Yu and Liu, Ziwei},
96
+ journal={arXiv preprint arXiv:2503.21755},
97
+ year={2025}
98
+ }
99
+ ```
100
+
101
  ## Run locally
102
 
103
  From the repo root:
app.py CHANGED
@@ -1291,6 +1291,7 @@ button.theme-toggle[data-mode="light"] .theme-icon-moon { display: block !import
1291
  }
1292
 
1293
  .compare-samples-help { color: var(--pruna-text-body); margin-bottom: 8px; }
 
1294
  .compare-controls,
1295
  .compare-controls.row,
1296
  .compare-controls.column,
@@ -2622,6 +2623,38 @@ qwen_samples = load_sample_comparison_data(qwen_combined_dir)
2622
  video_samples = load_sample_comparison_data(video_combined_dir)
2623
  text_to_video_samples = load_sample_comparison_data(text_to_video_combined_dir)
2624
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2625
  metrics = [
2626
  {"id": "datapoint_elo", "column": "Datapoint Elo"},
2627
  {"id": "rapidata_elo", "column": "Rapidata Elo"},
 
1291
  }
1292
 
1293
  .compare-samples-help { color: var(--pruna-text-body); margin-bottom: 8px; }
1294
+ .compare-samples-credit { color: var(--pruna-text-muted); font-size: 0.9em; margin: 0 0 12px; }
1295
  .compare-controls,
1296
  .compare-controls.row,
1297
  .compare-controls.column,
 
2623
  video_samples = load_sample_comparison_data(video_combined_dir)
2624
  text_to_video_samples = load_sample_comparison_data(text_to_video_combined_dir)
2625
 
2626
+ # Source credit shown above the sample prompts (full references are in the About tab).
2627
+ SAMPLE_PROMPT_CREDITS = {
2628
+ "oneig": (
2629
+ 'Prompts: <a href="https://huggingface.co/datasets/OneIG-Bench/OneIG-Bench" '
2630
+ 'target="_blank" rel="noopener noreferrer">OneIG-Bench</a> (Chang et al., 2025), '
2631
+ 'licensed <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" '
2632
+ 'rel="noopener noreferrer">CC BY-NC 4.0</a>, non-commercial use only. See About for references.'
2633
+ ),
2634
+ "qwen": (
2635
+ 'Prompts: <a href="https://huggingface.co/datasets/Qwen/Qwen-Image-Bench" '
2636
+ 'target="_blank" rel="noopener noreferrer">Qwen-Image-Bench</a> (Li et al., 2026), '
2637
+ "Apache 2.0. See About for references."
2638
+ ),
2639
+ "text_to_video": (
2640
+ 'Prompts: <a href="https://github.com/Vchitect/VBench/tree/master/VBench-2.0" '
2641
+ 'target="_blank" rel="noopener noreferrer">VBench-2.0</a> (Zheng et al., 2025), '
2642
+ "Apache 2.0. See About for references."
2643
+ ),
2644
+ "video_editing": (
2645
+ "Prompts and source videos: Pruna AI's internal video-editing set, "
2646
+ "© Pruna AI, all rights reserved. See About for details."
2647
+ ),
2648
+ }
2649
+ for _samples, _credit_id in (
2650
+ (oneig_samples, "oneig"),
2651
+ (qwen_samples, "qwen"),
2652
+ (text_to_video_samples, "text_to_video"),
2653
+ (video_samples, "video_editing"),
2654
+ ):
2655
+ if _samples:
2656
+ _samples["credit"] = SAMPLE_PROMPT_CREDITS[_credit_id]
2657
+
2658
  metrics = [
2659
  {"id": "datapoint_elo", "column": "Datapoint Elo"},
2660
  {"id": "rapidata_elo", "column": "Rapidata Elo"},
ui.py CHANGED
@@ -161,6 +161,47 @@ price vs score only.
161
  External text-to-image Elo (overall and category) from Arena AI. Their
162
  prompt set is private, so samples are not shown. Price and generation time
163
  are not in this export, so Pareto plots are unavailable.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  """
165
 
166
  ABOUT_DETAILS_CONTENT = """
@@ -1383,6 +1424,10 @@ def _build_compare_samples_html(samples, selected_models, num_prompts, seed=0):
1383
  """
1384
  )
1385
 
 
 
 
 
1386
  return "\n".join(blocks)
1387
 
1388
 
 
161
  External text-to-image Elo (overall and category) from Arena AI. Their
162
  prompt set is private, so samples are not shown. Price and generation time
163
  are not in this export, so Pareto plots are unavailable.
164
+
165
+ ## Datasets, licenses and references
166
+
167
+ The P-Bench code is released under the Apache License 2.0. The benchmark
168
+ prompts shown in Samples are copied verbatim from their original datasets and
169
+ keep those datasets' licenses; P-Bench uses a selection of each and adds its
170
+ own prompt IDs.
171
+
172
+ - **OneIG Alignment Dataset**: prompts from
173
+ [OneIG-Bench](https://huggingface.co/datasets/OneIG-Bench/OneIG-Bench),
174
+ licensed [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/)
175
+ (non-commercial use only).
176
+ Jingjing Chang, Yixiao Fang, Peng Xing, Shuhan Wu, Wei Cheng, Rui Wang,
177
+ Xianfang Zeng, Gang Yu and Hai-Bao Chen. *OneIG-Bench: Omni-dimensional
178
+ Nuanced Evaluation for Image Generation.* arXiv:2506.07977, 2025.
179
+ - **Qwen Image Dataset**: prompts from
180
+ [Qwen-Image-Bench](https://huggingface.co/datasets/Qwen/Qwen-Image-Bench),
181
+ licensed Apache 2.0.
182
+ Niantong Li et al. *Qwen-Image-Bench: From Generation to Creation in
183
+ Text-to-Image Evaluation.* arXiv:2605.28091, 2026.
184
+ - **VBench-2.0 Dataset**: prompts from
185
+ [VBench-2.0](https://github.com/Vchitect/VBench/tree/master/VBench-2.0),
186
+ licensed Apache 2.0.
187
+ Dian Zheng, Ziqi Huang, Hongbo Liu, Kai Zou, Yinan He, Fan Zhang, Yuanhan
188
+ Zhang, Jingwen He, Wei-Shi Zheng, Yu Qiao and Ziwei Liu. *VBench-2.0:
189
+ Advancing Video Generation Benchmark Suite for Intrinsic Faithfulness.*
190
+ arXiv:2503.21755, 2025.
191
+ - **Pruna Internal Video-Edit Benchmark**: prompts and source videos from
192
+ Pruna AI's internal video-editing set. © Pruna AI, all rights reserved.
193
+ - **Artificial Analysis Dataset**: Elo and price as published on the
194
+ [Artificial Analysis](https://artificialanalysis.ai/) text-to-image arena,
195
+ under their [terms of use](https://artificialanalysis.ai/docs/legal/Terms-of-Use.pdf).
196
+ - **Arena AI Dataset**: Elo as published on the
197
+ [Arena](https://arena.ai/leaderboard/text-to-image/overall) text-to-image
198
+ leaderboard (formerly LMArena), under their [terms of use](https://arena.ai/terms).
199
+
200
+ Pruna AI's own data (the video-editing prompts and source videos, Elo
201
+ scores, prices and generation times) is © Pruna AI, all rights reserved.
202
+
203
+ BibTeX for all of these is in the
204
+ [Space README](https://huggingface.co/spaces/PrunaAI/P-Bench/blob/main/README.md#citation).
205
  """
206
 
207
  ABOUT_DETAILS_CONTENT = """
 
1424
  """
1425
  )
1426
 
1427
+ credit = (samples or {}).get("credit")
1428
+ if credit:
1429
+ # Static HTML from SAMPLE_PROMPT_CREDITS in app.py (not user input).
1430
+ blocks.insert(0, f'<p class="compare-samples-credit">{credit}</p>')
1431
  return "\n".join(blocks)
1432
 
1433