Datasets:
Commit ·
2e41557
0
Parent(s):
Duplicate from Qwen/Qwen-Image-Bench
Browse filesCo-authored-by: Chenfei Wu <Chenfeifeifei@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +61 -0
- README.md +383 -0
- assets/figure_1_overall.png +3 -0
- assets/figure_2_l1_ranking.png +3 -0
- assets/figure_3_variance.png +3 -0
- assets/heatmap.png +3 -0
- assets/show_case.png +3 -0
- backends/__init__.py +0 -0
- backends/ms_swift_backend.py +59 -0
- checklists.py +147 -0
- compute_scores.py +268 -0
- images/FLUX.2-pro/000001_9abeb34a.png +3 -0
- images/FLUX.2-pro/000002_bd1f0d9c.png +3 -0
- images/FLUX.2-pro/000003_084eb030.png +3 -0
- images/FLUX.2-pro/000004_47a50d10.png +3 -0
- images/FLUX.2-pro/000005_f83b4579.png +3 -0
- images/FLUX.2-pro/000006_d7573ce9.png +3 -0
- images/FLUX.2-pro/000007_8365206a.png +3 -0
- images/FLUX.2-pro/000008_98c92727.png +3 -0
- images/FLUX.2-pro/000009_23cf078c.png +3 -0
- images/FLUX.2-pro/000010_b7e36647.png +3 -0
- images/FLUX.2-pro/000011_cd05793f.png +3 -0
- images/FLUX.2-pro/000012_6b200a51.png +3 -0
- images/FLUX.2-pro/000013_d0fbf9af.png +3 -0
- images/FLUX.2-pro/000014_3851b8a4.png +3 -0
- images/FLUX.2-pro/000015_0066b679.png +3 -0
- images/FLUX.2-pro/000016_79c5a9da.png +3 -0
- images/FLUX.2-pro/000017_3efe4354.png +3 -0
- images/FLUX.2-pro/000018_5e14985e.png +3 -0
- images/FLUX.2-pro/000019_4f98ee48.png +3 -0
- images/FLUX.2-pro/000020_f7df2284.png +3 -0
- images/FLUX.2-pro/000021_5e9733cf.png +3 -0
- images/FLUX.2-pro/000022_2de8a3c7.png +3 -0
- images/FLUX.2-pro/000023_f1ff72bf.png +3 -0
- images/FLUX.2-pro/000024_86745e09.png +3 -0
- images/FLUX.2-pro/000025_fdd8f80a.png +3 -0
- images/FLUX.2-pro/000026_116398a3.png +3 -0
- images/FLUX.2-pro/000027_7b544ab3.png +3 -0
- images/FLUX.2-pro/000028_15d1f13c.png +3 -0
- images/FLUX.2-pro/000029_c7197226.png +3 -0
- images/FLUX.2-pro/000030_7111ccf2.png +3 -0
- images/FLUX.2-pro/000031_35b6a8b8.png +3 -0
- images/FLUX.2-pro/000032_768d3860.png +3 -0
- images/FLUX.2-pro/000033_1f0497dd.png +3 -0
- images/FLUX.2-pro/000034_2ef76bac.png +3 -0
- images/FLUX.2-pro/000035_207b5e9b.png +3 -0
- images/FLUX.2-pro/000036_a270b72d.png +3 -0
- images/FLUX.2-pro/000037_2cfc595e.png +3 -0
- images/FLUX.2-pro/000038_a6f7b82e.png +3 -0
- images/FLUX.2-pro/000039_31048b03.png +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
qwen_image_bench_hf_v0518.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- zh
|
| 8 |
+
size_categories:
|
| 9 |
+
- 1K<n<10K
|
| 10 |
+
tags:
|
| 11 |
+
- text-to-image
|
| 12 |
+
- image-generation
|
| 13 |
+
- benchmark
|
| 14 |
+
- evaluation
|
| 15 |
+
configs:
|
| 16 |
+
- config_name: default
|
| 17 |
+
data_files:
|
| 18 |
+
- split: test
|
| 19 |
+
path: qwen_image_bench_hf_v0518.jsonl
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Qwen-Image-Bench
|
| 23 |
+
|
| 24 |
+
<p align="center">
|
| 25 |
+
<a href="http://arxiv.org/abs/2605.28091"><img src="https://img.shields.io/badge/Paper-arXiv-b31b1b?logo=arxiv" alt="Paper"></a>
|
| 26 |
+
<a href="https://github.com/QwenLM/Qwen-Image-Bench"><img src="https://img.shields.io/badge/GitHub-Repo-blue?logo=github" alt="GitHub"></a>
|
| 27 |
+
<a href="https://huggingface.co/Qwen/Qwen-Image-Bench"><img src="https://img.shields.io/badge/Judge_Model-HuggingFace-ffd21e?logo=huggingface" alt="Model"></a>
|
| 28 |
+
<a href="https://www.modelscope.cn/models/Qwen/Qwen-Image-Bench"><img src="https://img.shields.io/badge/Judge_Model-ModelScope-624aff?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDI0IDE0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8dGl0bGU+TW9kZWxTY29wZSBCYWRnZTwvdGl0bGU+CjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CjxnIGZpbGwtcnVsZT0ibm9uemVybyI+CjxwYXRoIGQ9Im0wIDIuNjY3aDIuNjY3djIuNjY3aC0yLjY2N3YtMi42Njd6bTggMi42NjZoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3oiIGZpbGw9IiMzNkNFRDAiLz4KPHBhdGggZD0ibTAgNS4zMzNoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3ptMi42NjcgMi42NjdoMi42NjZ2Mi42NjdoMi42Njd2Mi42NjZoLTUuMzMzdi01LjMzM3ptMC04aDUuMzMzdjIuNjY3aC0yLjY2N3YyLjY2NmgtMi42NjZ2LTUuMzMzem04IDhoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3oiIGZpbGw9IiM2MjRBRkYiLz4KPHBhdGggZD0ibTI0IDIuNjY3aC0yLjY2N3YyLjY2N2gyLjY2N3YtMi42Njd6bS04IDIuNjY2aC0yLjY2N3YyLjY2N2gyLjY2N3YtMi42Njd6IiBmaWxsPSIjMzZDRUQwIi8+CjxwYXRoIGQ9Im0yNCA1LjMzM2gtMi42Njd2Mi42NjdoMi42Njd2LTIuNjY3em0tMi42NjcgMi42NjdoLTIuNjY2djIuNjY3aC0yLjY2N3YyLjY2Nmg1LjMzM3YtNS4zMzN6bTAtOGgtNS4zMzN2Mi42NjdoMi42Njd2Mi42NjZoMi42NjZ2LTUuMzMzeiIgZmlsbD0iIzYyNEFGRiIvPgo8L2c+CjwvZz4KPC9zdmc+Cg==" alt="ModelScope"></a>
|
| 29 |
+
<a href="https://huggingface.co/datasets/Qwen/Qwen-Image-Bench"><img src="https://img.shields.io/badge/Dataset-HuggingFace-ffd21e?logo=huggingface" alt="Dataset"></a>
|
| 30 |
+
<a href="https://www.modelscope.cn/datasets/Qwen/Qwen-Image-Bench"><img src="https://img.shields.io/badge/Dataset-ModelScope-624aff?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDI0IDE0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8dGl0bGU+TW9kZWxTY29wZSBCYWRnZTwvdGl0bGU+CjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CjxnIGZpbGwtcnVsZT0ibm9uemVybyI+CjxwYXRoIGQ9Im0wIDIuNjY3aDIuNjY3djIuNjY3aC0yLjY2N3YtMi42Njd6bTggMi42NjZoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3oiIGZpbGw9IiMzNkNFRDAiLz4KPHBhdGggZD0ibTAgNS4zMzNoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3ptMi42NjcgMi42NjdoMi42NjZ2Mi42NjdoMi42Njd2Mi42NjZoLTUuMzMzdi01LjMzM3ptMC04aDUuMzMzdjIuNjY3aC0yLjY2N3YyLjY2NmgtMi42NjZ2LTUuMzMzem04IDhoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3oiIGZpbGw9IiM2MjRBRkYiLz4KPHBhdGggZD0ibTI0IDIuNjY3aC0yLjY2N3YyLjY2N2gyLjY2N3YtMi42Njd6bS04IDIuNjY2aC0yLjY2N3YyLjY2N2gyLjY2N3YtMi42Njd6IiBmaWxsPSIjMzZDRUQwIi8+CjxwYXRoIGQ9Im0yNCA1LjMzM2gtMi42Njd2Mi42NjdoMi42Njd2LTIuNjY3em0tMi42NjcgMi42NjdoLTIuNjY2djIuNjY3aC0yLjY2N3YyLjY2Nmg1LjMzM3YtNS4zMzN6bTAtOGgtNS4zMzN2Mi42NjdoMi42Njd2Mi42NjZoMi42NjZ2LTUuMzMzeiIgZmlsbD0iIzYyNEFGRiIvPgo8L2c+CjwvZz4KPC9zdmc+Cg==" alt="ModelScope"></a>
|
| 31 |
+
</p>
|
| 32 |
+
|
| 33 |
+
**A creator-centric benchmark for evaluating Text-to-Image models beyond semantic alignment.**
|
| 34 |
+
|
| 35 |
+
## Links
|
| 36 |
+
|
| 37 |
+
| Resource | Link |
|
| 38 |
+
|----------|------|
|
| 39 |
+
| 📑 Paper | http://arxiv.org/abs/2605.28091 |
|
| 40 |
+
| 📊 Benchmark Dataset (HuggingFace) | https://huggingface.co/datasets/Qwen/Qwen-Image-Bench |
|
| 41 |
+
| 📊 Benchmark Dataset (ModelScope) | https://www.modelscope.cn/datasets/Qwen/Qwen-Image-Bench |
|
| 42 |
+
| 💻 GitHub | https://github.com/QwenLM/Qwen-Image-Bench |
|
| 43 |
+
| 🧑⚖️ Q-Judger Model | https://huggingface.co/Qwen/Qwen-Image-Bench |
|
| 44 |
+
| 🧑⚖️ Q-Judger Model | https://modelscope.cn/models/Qwen/Qwen-Image-Bench |
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
## Overview
|
| 48 |
+
|
| 49 |
+
<p align="center">
|
| 50 |
+
<img src="assets/show_case.png" alt="Qwen-Image-Bench dimension framework and representative model outputs across all L3 facets">
|
| 51 |
+
</p>
|
| 52 |
+
|
| 53 |
+
Text-to-Image (T2I) generation has evolved from basic image synthesis into a core capability in professional creative workflows. Simple text-image alignment can no longer satisfy the pressing demands for faithful real-world reconstruction and genuine creative expression. Existing benchmarks remain anchored in foundational criteria and fail to reliably distinguish state-of-the-art T2I models. Moreover, many evaluation pipelines rely on a single MLLM as the sole judge, diverging from professional human standards.
|
| 54 |
+
|
| 55 |
+
**Qwen-Image-Bench** is a creator-centric benchmark co-designed with professional artists and grounded in real-world creation scenarios. Building upon the conventional pillars of *Quality*, *Aesthetics*, and *Text-Image Alignment*, it enriches evaluation with two application-driven dimensions: **Real-world Fidelity** and **Creative Generation**.
|
| 56 |
+
|
| 57 |
+
## Key Features
|
| 58 |
+
|
| 59 |
+
### 🏗️ Three-Level Hierarchical Taxonomy
|
| 60 |
+
|
| 61 |
+
Designed top-down along the staged reasoning of professional artistic workflows (ideation → styling → iterative refinement):
|
| 62 |
+
|
| 63 |
+
- **5 L1 Pillars**: Quality, Aesthetics, Alignment, Real-world Fidelity, Creative Generation
|
| 64 |
+
- **23 L2 Sub-capabilities**: e.g., World Knowledge, Text Rendering, Visual Storytelling, Design Applications
|
| 65 |
+
- **56 L3 Evaluation Facets**: Fine-grained, verifiable rubrics anchoring each assessment
|
| 66 |
+
|
| 67 |
+
Among the 56 facets, 28 fall under the two application-driven pillars, covering high-frequency creator scenarios such as world knowledge, design applications, visual storytelling, and text rendering.
|
| 68 |
+
|
| 69 |
+
### 📝 1,000 Expert-Crafted Bilingual Prompts
|
| 70 |
+
|
| 71 |
+
- Stratified and balanced across length (500 long + 500 short) and language (Chinese/English)
|
| 72 |
+
- Each prompt jointly exercises **4+ fine-grained facets** across multiple pillars
|
| 73 |
+
- Designed to stress-test both novice-style brief descriptions and professional-grade detailed specifications
|
| 74 |
+
|
| 75 |
+
### 🧑⚖️ Q-Judger: A Unified Diagnostic Judge Model
|
| 76 |
+
|
| 77 |
+
Instead of a single opaque score, **Q-Judger** (based on Qwen3.6-27B) produces a complete fine-grained score vector across all 56 third-level facets for each sample, enabling precise diagnosis of capability gaps.
|
| 78 |
+
|
| 79 |
+
- Trained on **130,000+** bilingual expert-annotated prompt-image pairs
|
| 80 |
+
- Supervised by **80 professional annotators** from art academies (photography, directing, fine arts)
|
| 81 |
+
- Blind labeling with at least **3 independent reviews** per sample
|
| 82 |
+
- Achieves **Spearman ρ = 0.92** ranking consistency with human expert judgments
|
| 83 |
+
|
| 84 |
+
### 📊 Comprehensive Evaluation of 18 Frontier T2I Models
|
| 85 |
+
|
| 86 |
+
We evaluate 18 representative models including GPT Image 2, Nano Banana Pro, GPT Image 1.5, Seedream 5.0, Imagen 4.0 Ultra, Qwen Image 2.0 Pro, HunyuanImage 3.0, GLM Image, and more.
|
| 87 |
+
|
| 88 |
+
**Key findings:**
|
| 89 |
+
- GPT Image 2 achieves the highest overall score (64.7) across all five pillars
|
| 90 |
+
- The two application-driven pillars exhibit the **largest inter-model variance**, confirming they target capability gaps invisible to existing benchmarks
|
| 91 |
+
- 18 models naturally separate into **5 performance tiers** with a 16.5-point spread
|
| 92 |
+
- Four L3 facets (Physical Logic, Anatomical Fidelity, Animals, Contact Interaction) emerge as **systemic ceilings** where even the best models score below 44
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
## 🏆 Leaderboard
|
| 96 |
+
|
| 97 |
+
<!-- [Placeholder: Leaderboard table or link to online leaderboard] -->
|
| 98 |
+
|
| 99 |
+
| Rank | Model | Quality | Aesthetics | Alignment | Real-world Fidelity | Creative Generation | Overall |
|
| 100 |
+
|------|-------|---------|------------|-----------|---------------------|---------------------|---------|
|
| 101 |
+
| 1 | GPT Image 2 | **58.65** | **67.53** | **65.85** | **57.38** | **75.23** | **64.69** |
|
| 102 |
+
| 2 | Nano Banana 2.0 | 54.77 | 61.08 | 62.40 | 54.28 | 67.05 | 59.82 |
|
| 103 |
+
| 3 | GPT Image 1.5 | 55.14 | 60.88 | 61.72 | 53.95 | 66.35 | 59.65 |
|
| 104 |
+
| 4 | Nano Banana Pro | 55.67 | 60.26 | 61.25 | 54.07 | 66.23 | 59.45 |
|
| 105 |
+
| 5 | Qwen Image 2.0 Pro | 54.39 | 58.67 | 59.28 | 51.83 | 64.94 | 57.84 |
|
| 106 |
+
| 6 | Seedream 5.0 | 52.55 | 58.40 | 58.90 | 51.92 | 65.29 | 57.22 |
|
| 107 |
+
| 7 | Seedream 4.5 | 54.41 | 58.72 | 57.31 | 51.69 | 60.64 | 56.78 |
|
| 108 |
+
| 8 | Seedream 4.0 | 54.01 | 58.81 | 56.64 | 51.05 | 58.15 | 56.21 |
|
| 109 |
+
| 9 | FLUX 2 Max | 53.64 | 56.85 | 57.35 | 49.35 | 56.50 | 55.33 |
|
| 110 |
+
| 10 | FLUX 2 Pro | 52.30 | 56.94 | 57.01 | 47.29 | 56.18 | 54.57 |
|
| 111 |
+
| 11 | GPT Image 1 | 52.34 | 55.09 | 56.28 | 48.14 | 55.78 | 54.07 |
|
| 112 |
+
| 12 | Qwen Image 2512 | 51.76 | 54.74 | 52.72 | 47.00 | 50.19 | 52.06 |
|
| 113 |
+
| 13 | Imagen 4.0 Ultra | 50.90 | 54.25 | 54.02 | 45.59 | 51.14 | 51.99 |
|
| 114 |
+
| 14 | HunyuanImage 3.0 | 50.35 | 53.57 | 52.00 | 44.31 | 49.12 | 50.81 |
|
| 115 |
+
| 15 | Imagen 4.0 | 50.16 | 52.68 | 51.64 | 44.84 | 47.94 | 50.29 |
|
| 116 |
+
| 16 | Qwen Image | 48.44 | 52.25 | 50.72 | 43.16 | 47.30 | 49.23 |
|
| 117 |
+
| 17 | Kling Image 2.1 | 49.11 | 50.15 | 49.18 | 44.74 | 44.67 | 48.26 |
|
| 118 |
+
| 18 | GLM Image | 49.26 | 50.64 | 47.90 | 44.69 | 45.23 | 48.19 |
|
| 119 |
+
|
| 120 |
+
*The leaderboard results are computed based on Q-Judger's evaluation of images generated from Chinese prompts. We will release the results for image generation from English prompts soon.
|
| 121 |
+
|
| 122 |
+
## Results Analysis
|
| 123 |
+
|
| 124 |
+
### Overall Ranking
|
| 125 |
+
|
| 126 |
+
<p align="center">
|
| 127 |
+
<img src="assets/figure_1_overall.png" alt="Overall ranking of 18 T2I models on Qwen-Image-Bench">
|
| 128 |
+
</p>
|
| 129 |
+
|
| 130 |
+
GPT Image 2 leads by nearly 5 points over the second-ranked Nano Banana 2.0, with GPT Image 1.5 and Nano Banana Pro following closely to form a tightly clustered second tier. Qwen Image 2.0 Pro ranks fifth overall, heading the third tier. GLM Image sits at the bottom, yielding a 16.5-point spread from the leader and demonstrating the benchmark's effective discriminative power across the full model spectrum. The 18 models naturally separate into **five tiers**:
|
| 131 |
+
|
| 132 |
+
- **T1 (64+):** GPT Image 2
|
| 133 |
+
- **T2 (59–60):** Nano Banana 2.0, GPT Image 1.5, Nano Banana Pro
|
| 134 |
+
- **T3 (56–58):** Qwen Image 2.0 Pro, Seedream 5.0, Seedream 4.5, Seedream 4.0
|
| 135 |
+
- **T4 (54–56):** FLUX 2 Max, FLUX 2 Pro, GPT Image 1
|
| 136 |
+
- **T5 (48–52):** seven remaining models
|
| 137 |
+
|
| 138 |
+
Notably, GPT Image 2 achieves the highest score on all five L1 pillars simultaneously, forming a dominant profile with no discernible weakness, a rarity among the 18 evaluated models.
|
| 139 |
+
|
| 140 |
+
### Per-Pillar (L1) Rankings
|
| 141 |
+
|
| 142 |
+
<p align="center">
|
| 143 |
+
<img src="assets/figure_2_l1_ranking.png" alt="Per-pillar rankings across the five L1 dimensions">
|
| 144 |
+
</p>
|
| 145 |
+
|
| 146 |
+
**Creative Generation produces the largest ranking shifts.** GPT Image 2 leads, followed by Nano Banana 2.0 and GPT Image 1.5. Qwen Image 2.0 Pro ranks sixth on this pillar. The 30.6-point spread between the leader and the bottom-ranked model is the largest among all five pillars, confirming Creative Generation as the most discriminative dimension.
|
| 147 |
+
|
| 148 |
+
**Quality rankings diverge most from the overall leaderboard.** Nano Banana Pro climbs to second on Quality, demonstrating superior artifact suppression and physical-logic handling. The Seedream series illustrates a noteworthy version-evolution trade-off: Seedream 4.5 scores higher than 5.0 on Quality and Aesthetics, while 5.0 surges ahead on Creative Generation by over 4 points, suggesting that the newer release prioritized creative capabilities at the cost of basic image quality. This trade-off is one that our multi-pillar evaluation makes explicit but a single-score benchmark would obscure.
|
| 149 |
+
|
| 150 |
+
**Aesthetics and Alignment show the most stable rankings.** The top four models (GPT Image 2, Nano Banana 2.0, GPT Image 1.5, Nano Banana Pro) retain their positions across both pillars. On Alignment, Qwen Image 2.0 Pro rises to fifth, while on Aesthetics the Seedream series (4.0/4.5/5.0) forms a tightly clustered band with near-identical scores occupying ranks 5–8.
|
| 151 |
+
|
| 152 |
+
**Real-world Fidelity separates production-grade models.** GPT Image 2 leads, with the next cluster (Nano Banana 2.0, GPT Image 1.5, Nano Banana Pro) trailing by roughly 3 points. The 14-point gap between the leader and the lowest-performing models supports the observation that faithful reconstruction of real-world structure and knowledge-grounded content is currently a defining advantage of frontier models.
|
| 153 |
+
|
| 154 |
+
**Application-driven pillars widen the gap between tiers.** Qwen Image 2.0 Pro ranks fifth on Alignment but sixth on Quality, Real-world Fidelity, and Creative Generation (seventh on Aesthetics). Its gap to GPT Image 2 remains moderate on Quality and Alignment but widens sharply on Aesthetics and Creative Generation. Despite this, Qwen Image 2.0 Pro scores at or above the industry mean on virtually all L3 facets, indicating a solid "no-weakness" baseline.
|
| 155 |
+
|
| 156 |
+
### Variance Analysis
|
| 157 |
+
|
| 158 |
+
<p align="center">
|
| 159 |
+
<img src="assets/figure_3_variance.png" alt="Variance across L1, L2, and L3 dimensions">
|
| 160 |
+
</p>
|
| 161 |
+
|
| 162 |
+
**L3 variance pinpoints the sharpest frontiers.** At the finest granularity, Text Accuracy (under Creative Generation) is the single most discriminative facet. Information Visualization (under Real-world Fidelity) and Cross-lingual Generation (under Creative Generation) rank second and third. Of the 15 highest-variance L3 facets, **12 belong to Creative Generation or Real-world Fidelity** (e.g., Storyboard Creation, Graphic Design, Cross-lingual Generation, Game Design), dimensions that jointly test creative imagination, logical reasoning, and execution precision.
|
| 163 |
+
|
| 164 |
+
**L2 variance confirms application-driven dimensions dominate.** Rolling up to the second level, the highest-variance L2 sub-capability is Text Rendering (under Creative Generation), followed by Style Control (under Aesthetics), Logical Resolution (under Creative Generation), and World Knowledge (under Real-world Fidelity). Among the top six L2 dimensions by variance, four belong to the two application-driven pillars introduced by our benchmark.
|
| 165 |
+
|
| 166 |
+
**L1 variance reveals where differentiation lies.** At the pillar level, Creative Generation variance is over **11×** that of Quality and over **4×** that of Aesthetics. The low variance on Quality indicates that basic image quality has become a "table-stakes" capability, while Creative Generation, the pillar most unique to our creator-centric design, is precisely where models diverge most sharply.
|
| 167 |
+
|
| 168 |
+
### L3 Heatmap
|
| 169 |
+
|
| 170 |
+
<p align="center">
|
| 171 |
+
<img src="assets/heatmap.png" alt="L3-level heatmap of all 18 models across 56 third-level facets">
|
| 172 |
+
</p>
|
| 173 |
+
|
| 174 |
+
The L3-level heatmap provides a comprehensive visualization of all 18 models across all 56 third-level facets. Several patterns are immediately visible.
|
| 175 |
+
|
| 176 |
+
**A clear left-to-right gradient mirrors the overall ranking tiers.** The heatmap transitions from deep color on the left to light color on the right, mirroring the overall ranking. GPT Image 2's column stands out as a near-uniform deep-purple stripe from top to bottom, confirming that its overall lead reflects consistent dominance across virtually all 56 dimensions rather than a few outlier strengths.
|
| 177 |
+
|
| 178 |
+
**A sharp color discontinuity within Creative Generation reveals a threshold effect.** Around ranks 5–6, facets such as Text Accuracy, Game Design, Storyboard Creation, and Comic Creation transition abruptly from moderate scores to near-white. Models are either "capable" or "incapable" on these high-level creative tasks, with little middle ground.
|
| 179 |
+
|
| 180 |
+
**Three rows expose systemic capability ceilings.** Physical Logic, Anatomical Fidelity, and Animals remain uniformly pale across all 18 models, highlighting these as systemic capability ceilings of current T2I technology rather than model-specific weaknesses. Conversely, Material Properties under Alignment shows a consistently dark row (leader: 84.1), indicating that material-attribute adherence is the most reliably followed instruction type across all models.
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
## Data Fields
|
| 184 |
+
|
| 185 |
+
Each row in the JSONL file contains:
|
| 186 |
+
|
| 187 |
+
| Field | Type | Description |
|
| 188 |
+
|-------|------|-------------|
|
| 189 |
+
| `ID` | int | Unique prompt identifier (1-1000) |
|
| 190 |
+
| `prompt_cn` | str | Text prompt in Chinese |
|
| 191 |
+
| `prompt_en` | str | Text prompt in English |
|
| 192 |
+
| `dims_cn` | str | Evaluation dimensions for this prompt (Chinese) |
|
| 193 |
+
| `dims_en` | str | Evaluation dimensions for this prompt (English) |
|
| 194 |
+
| `<model_name>` | str | Relative path to the generated image for each model (Use prompt_cn)|
|
| 195 |
+
| `quality_response_<model>` | str | Judge model raw output for the Quality dimension |
|
| 196 |
+
| `aesthetics_response_<model>` | str | Judge model raw output for the Aesthetics dimension |
|
| 197 |
+
| `alignment_response_<model>` | str | Judge model raw output for the Alignment dimension |
|
| 198 |
+
| `creative_generation_response_<model>` | str | Judge model raw output for the Creative Generation dimension |
|
| 199 |
+
| `real_world_fidelity_response_<model>` | str | Judge model raw output for the Real-world Fidelity dimension |
|
| 200 |
+
|
| 201 |
+
### Included Models (18)
|
| 202 |
+
|
| 203 |
+
Qwen-Image-2.0-pro, Gpt-Image-2, FLUX.2-Max, Nano-Banana-2.0, Nano-Banana-Pro, Seedream-4.0, Seedream-4.5, Seedream-5.0, GLM-Image, Kling-v2.1, Qwen-Image-2512, Qwen-Image, GPT-Image-1, GPT-Image-1.5, HunyuanImage-3.0, Imagen-4.0, Imagen-4.0-Ultra, FLUX.2-Pro
|
| 204 |
+
|
| 205 |
+
## Evaluation Dimensions
|
| 206 |
+
|
| 207 |
+
The benchmark uses a **3-level hierarchical scoring system** across 5 top-level dimensions:
|
| 208 |
+
|
| 209 |
+
### Quality
|
| 210 |
+
- **Realism**: Physical Logic, Material Texture
|
| 211 |
+
- **Detail**: Noise, Edge Clarity, Naturalness
|
| 212 |
+
- **Resolution**: Resolution
|
| 213 |
+
|
| 214 |
+
### Aesthetics
|
| 215 |
+
- **Composition**: Composition
|
| 216 |
+
- **Color Harmony**: Color Harmony
|
| 217 |
+
- **Lighting**: Lighting & Atmosphere
|
| 218 |
+
- **Anatomical Portraiture**: Anatomical Fidelity
|
| 219 |
+
- **Emotional Expression**: Emotional Expression
|
| 220 |
+
- **Style Control**: Style Control
|
| 221 |
+
|
| 222 |
+
### Alignment
|
| 223 |
+
- **Attributes**: Quantity, Facial Expression, Material Properties, Color, Shape, Size
|
| 224 |
+
- **Actions**: Contact Interaction, Non-contact Interaction, Full-body Action
|
| 225 |
+
- **Layout**: 2D Space, 3D Space
|
| 226 |
+
- **Relations**: Composition Relationship, Difference/Similarity, Containment
|
| 227 |
+
- **Scene**: Real-world Scene, Virtual Scene
|
| 228 |
+
|
| 229 |
+
### Real-world Fidelity
|
| 230 |
+
- **Fairness**: Social Bias, Cultural Fairness
|
| 231 |
+
- **Safety & Compliance**: Safety & Compliance
|
| 232 |
+
- **World Knowledge**: Animals, Objects, Information Visualization, Temporal Characteristics, Cultural Elements
|
| 233 |
+
|
| 234 |
+
### Creative Generation
|
| 235 |
+
- **Imagination**: Imagination
|
| 236 |
+
- **Feature Matching**: Feature Matching
|
| 237 |
+
- **Logical Resolution**: Logical Resolution
|
| 238 |
+
- **Text Rendering**: Text Accuracy, Text Layout, Font, Cross-lingual Generation
|
| 239 |
+
- **Design Applications**: Graphic Design, Product Design, Spatial Design, Fashion Styling, Game Design, Art Design
|
| 240 |
+
- **Visual Storytelling**: Cinematic Style, Camera / Lens Style, Storyboard Creation, Shot Sizes, Composition, Angles, Comic Creation
|
| 241 |
+
|
| 242 |
+
## Scoring Methodology
|
| 243 |
+
|
| 244 |
+
### Raw Score Mapping
|
| 245 |
+
|
| 246 |
+
| Raw Score | Meaning | Mapped Score |
|
| 247 |
+
|-----------|---------|--------------|
|
| 248 |
+
| 0 | Fail | 0 |
|
| 249 |
+
| 1 | Pass | 60 |
|
| 250 |
+
| 2 | Excel | 100 |
|
| 251 |
+
| N/A | Not applicable | Excluded |
|
| 252 |
+
|
| 253 |
+
### Scoring Pipeline
|
| 254 |
+
|
| 255 |
+
Scores are aggregated bottom-up per sample: L3 → L2 → L1 → Overall. Each sample's overall score is the unweighted mean of its active L1 pillars (3–5 per prompt). The model-level score is the mean across all 1,000 prompts.
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
## Usage
|
| 259 |
+
|
| 260 |
+
### Installation
|
| 261 |
+
|
| 262 |
+
**1. Create and activate a virtual environment with uv:**
|
| 263 |
+
|
| 264 |
+
```bash
|
| 265 |
+
uv venv myenv --python 3.11
|
| 266 |
+
source myenv/bin/activate
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
**2. Install PyTorch** (select the command matching your CUDA version):
|
| 270 |
+
|
| 271 |
+
See the official guide: [https://pytorch.org/get-started/locally/](https://pytorch.org/get-started/locally/)
|
| 272 |
+
|
| 273 |
+
**3. Install Python dependencies:**
|
| 274 |
+
|
| 275 |
+
```bash
|
| 276 |
+
uv pip install -r requirements.txt
|
| 277 |
+
```
|
| 278 |
+
|
| 279 |
+
This installs all required dependencies including ms-swift.
|
| 280 |
+
|
| 281 |
+
### Compute Scores from Pre-generated Responses
|
| 282 |
+
|
| 283 |
+
```bash
|
| 284 |
+
|
| 285 |
+
# From local file
|
| 286 |
+
python compute_scores.py --input qwen_image_bench_hf_v0518.jsonl
|
| 287 |
+
|
| 288 |
+
# Or download from HuggingFace
|
| 289 |
+
python compute_scores.py --hf-repo Qwen/Qwen-Image-Bench
|
| 290 |
+
```
|
| 291 |
+
|
| 292 |
+
Output: `scores_result.xlsx` + `scores_detail.json`
|
| 293 |
+
|
| 294 |
+
### Run Judge Model Inference on Your Own Images
|
| 295 |
+
|
| 296 |
+
Prepare an input CSV/JSON/JSONL file with columns: `ID`, `prompt`, `image_path`.
|
| 297 |
+
|
| 298 |
+
The `ID` column must match the benchmark metadata (1-1000), which defines which evaluation dimensions apply to each prompt. The metadata file (`metadata/bench_metadata.json`) is loaded automatically by default.
|
| 299 |
+
|
| 300 |
+
#### Run Judge Inference
|
| 301 |
+
|
| 302 |
+
```bash
|
| 303 |
+
python judge.py \
|
| 304 |
+
--input your_data.jsonl \
|
| 305 |
+
--model Qwen/Qwen-Image-Bench
|
| 306 |
+
# metadata auto-loaded from metadata/bench_metadata.json
|
| 307 |
+
```
|
| 308 |
+
|
| 309 |
+
#### CLI Options for `judge.py`
|
| 310 |
+
|
| 311 |
+
| Argument | Default | Description |
|
| 312 |
+
|----------|---------|-------------|
|
| 313 |
+
| `--input` | (required) | Input CSV/JSON/JSONL with ID, prompt, image_path |
|
| 314 |
+
| `--model` | (required) | HuggingFace model ID or local model path |
|
| 315 |
+
| `--hf-bench-repo` | - | HF dataset repo for bench metadata |
|
| 316 |
+
| `--local-metadata` | - | Local metadata file path (overrides default) |
|
| 317 |
+
| `--max-batch-size` | 24 | ms-swift PtEngine max_batch_size |
|
| 318 |
+
| `--max-new-tokens` | 4096 | Max generation tokens |
|
| 319 |
+
|
| 320 |
+
### Output Files
|
| 321 |
+
|
| 322 |
+
After running `judge.py`, three files are written next to your input:
|
| 323 |
+
|
| 324 |
+
| File | Contents |
|
| 325 |
+
|---|---|
|
| 326 |
+
| `<input>_judged.{jsonl,csv}` | Per-row results: all original input fields + `judge_model_output` (combined raw scores JSON string across all evaluated L1 dimensions) + `<dim>_judge_output` (raw judge model text for each L1 dimension) |
|
| 327 |
+
| `<input>_bench_scores.json` | Bench-level aggregated scores: `level1`, `level2`, `total` |
|
| 328 |
+
| `<input>_bench_scores.xlsx` | Same scores in Excel: `Level-1 Summary` sheet + one sheet per L1 dimension with L2 detail |
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
## Inference Parameters
|
| 334 |
+
|
| 335 |
+
The judge model uses fixed inference parameters that mirror the ms-swift CLI flags used to generate the dataset's `*_response_*` fields:
|
| 336 |
+
|
| 337 |
+
| Parameter | Value | swift CLI flag |
|
| 338 |
+
|-----------|-------|----------------|
|
| 339 |
+
| `seed` | 42 | `--seed 42` |
|
| 340 |
+
| `temperature` | 0 | `--temperature 0` |
|
| 341 |
+
| `top_k` | 1 | `--top_k 1` |
|
| 342 |
+
| `top_p` | 1.0 | `--top_p 1` |
|
| 343 |
+
| `repetition_penalty` | 1.05 | `--repetition_penalty 1.05` |
|
| 344 |
+
| `max_new_tokens` | 4096 | `--max_new_tokens 4096` |
|
| 345 |
+
| `enable_thinking` | True | `--enable_thinking true` |
|
| 346 |
+
| `max_batch_size` | 24 | `--max_batch_size 24` |
|
| 347 |
+
|
| 348 |
+
## File Structure
|
| 349 |
+
|
| 350 |
+
```
|
| 351 |
+
./
|
| 352 |
+
├── qwen_image_bench_hf_v0518.jsonl # Benchmark data with judge responses
|
| 353 |
+
├── images/ # Generated images from 18 models
|
| 354 |
+
│ ├── Qwen-Image-2.0-pro/
|
| 355 |
+
│ ├── gpt-image-2/
|
| 356 |
+
│ └── ...
|
| 357 |
+
├── metadata/
|
| 358 |
+
│ └── bench_metadata.json # ID + dims_en metadata for judge inference
|
| 359 |
+
├── compute_scores.py # Compute scores from pre-generated responses
|
| 360 |
+
├── judge.py # Run judge model inference on new images
|
| 361 |
+
├── score_utils.py # Score extraction, mapping, correction, aggregation
|
| 362 |
+
├── checklists.py # Evaluation prompts and dimension definitions
|
| 363 |
+
├── backends/
|
| 364 |
+
│ └── ms_swift_backend.py # ms-swift inference engine
|
| 365 |
+
├── requirements.txt
|
| 366 |
+
└── README.md
|
| 367 |
+
```
|
| 368 |
+
|
| 369 |
+
## Citation
|
| 370 |
+
|
| 371 |
+
If you find this benchmark useful, please cite our paper:
|
| 372 |
+
|
| 373 |
+
```bibtex
|
| 374 |
+
@misc{li2026qwenimagebenchgenerationcreationtexttoimage,
|
| 375 |
+
title={Qwen-Image-Bench: From Generation to Creation in Text-to-Image Evaluation},
|
| 376 |
+
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},
|
| 377 |
+
year={2026},
|
| 378 |
+
eprint={2605.28091},
|
| 379 |
+
archivePrefix={arXiv},
|
| 380 |
+
primaryClass={cs.CV},
|
| 381 |
+
url={https://arxiv.org/abs/2605.28091},
|
| 382 |
+
}
|
| 383 |
+
```
|
assets/figure_1_overall.png
ADDED
|
Git LFS Details
|
assets/figure_2_l1_ranking.png
ADDED
|
Git LFS Details
|
assets/figure_3_variance.png
ADDED
|
Git LFS Details
|
assets/heatmap.png
ADDED
|
Git LFS Details
|
assets/show_case.png
ADDED
|
Git LFS Details
|
backends/__init__.py
ADDED
|
File without changes
|
backends/ms_swift_backend.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
ms-swift PtEngine inference engine.
|
| 3 |
+
|
| 4 |
+
Mirrors the swift CLI command used to produce this dataset's *_response_* fields:
|
| 5 |
+
|
| 6 |
+
swift infer --infer_backend pt --max_batch_size 24 --seed 42 \
|
| 7 |
+
--temperature 0 --top_k 1 --top_p 1 \
|
| 8 |
+
--repetition_penalty 1.05 --max_new_tokens 4096 \
|
| 9 |
+
--enable_thinking true
|
| 10 |
+
|
| 11 |
+
Requires ms-swift>=4.0.0.
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
from swift import TransformersEngine, RequestConfig, InferRequest
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class MsSwiftJudge:
|
| 18 |
+
def __init__(self, model_path, max_batch_size=24, max_new_tokens=4096):
|
| 19 |
+
self.engine = TransformersEngine(model_path, max_batch_size=max_batch_size)
|
| 20 |
+
self.request_config = RequestConfig(
|
| 21 |
+
max_tokens=max_new_tokens,
|
| 22 |
+
temperature=0,
|
| 23 |
+
top_k=1,
|
| 24 |
+
top_p=1.0,
|
| 25 |
+
repetition_penalty=1.05,
|
| 26 |
+
seed=42,
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
# Enable Qwen3 thinking mode on the engine's default template.
|
| 30 |
+
# ms-swift 4.x exposes this via Template.template_meta.template_kwargs.
|
| 31 |
+
try:
|
| 32 |
+
self.engine.default_template.template_meta.template_kwargs = {
|
| 33 |
+
"enable_thinking": True
|
| 34 |
+
}
|
| 35 |
+
except AttributeError:
|
| 36 |
+
pass # fall back to per-request template_inputs below
|
| 37 |
+
|
| 38 |
+
def generate_batch(self, items):
|
| 39 |
+
"""
|
| 40 |
+
Batch inference for multiple items.
|
| 41 |
+
Each item: {"system_prompt": str, "user_text": str, "image": PIL.Image}
|
| 42 |
+
Returns list of generated text strings.
|
| 43 |
+
"""
|
| 44 |
+
infer_requests = []
|
| 45 |
+
for item in items:
|
| 46 |
+
messages = [
|
| 47 |
+
{"role": "system", "content": item["system_prompt"]},
|
| 48 |
+
{"role": "user", "content": item["user_text"]},
|
| 49 |
+
]
|
| 50 |
+
infer_requests.append(
|
| 51 |
+
InferRequest(messages=messages, images=[item["image"]])
|
| 52 |
+
)
|
| 53 |
+
|
| 54 |
+
resp_list = self.engine.infer(
|
| 55 |
+
infer_requests,
|
| 56 |
+
self.request_config,
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
return [r.choices[0].message.content for r in resp_list]
|
checklists.py
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import defaultdict
|
| 2 |
+
|
| 3 |
+
QUALITY_CHECKLIST = """## Realism
|
| 4 |
+
- Physical Logic: Does the image adhere to real-world physical laws (e.g., gravity, reflection, shadow direction, object stability)?
|
| 5 |
+
- Material Texture: Do the surface materials of objects (such as skin, fabric, metal, wood) exhibit realistic texture and material properties?
|
| 6 |
+
## Detail
|
| 7 |
+
- Noise: Is the image rich in detail without excessive noise or unnatural smoothing?
|
| 8 |
+
- Edge Clarity: Are the outlines and edges of objects sharp, well-defined, and free from blurring or aliasing?
|
| 9 |
+
- Naturalness: Does the image appear natural and free from the artificial "plastic" or "greasy" look commonly associated with AI-generated images?
|
| 10 |
+
## Resolution
|
| 11 |
+
- Resolution: Is the overall image resolution high-definition, free from visible pixelation or compression artifacts?"""
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
AESTHETICS_CHECKLIST = """## Composition
|
| 15 |
+
- Composition: Is the composition of the image balanced, visually guided, and aesthetically pleasing?
|
| 16 |
+
## Color Harmony
|
| 17 |
+
- Color Harmony: Is the overall color palette harmonious, cohesive, and appropriate for the mood of the image?
|
| 18 |
+
## Lighting
|
| 19 |
+
- Lighting & Atmosphere: Does the lighting and shadow atmosphere of the image (such as contrast between light and dark, and the overall lighting atmosphere) match the scene setting of the prompt?
|
| 20 |
+
## Anatomical Portraiture
|
| 21 |
+
- Anatomical Fidelity: Are the facial feature proportions, skeletal structure, and limb articulation anatomically correct and consistent with human biology? Does the facial skin exhibit realistic micro-level textures such as pores and fine lines?
|
| 22 |
+
## Emotional Expression
|
| 23 |
+
- Emotional Expression: Does the image's overall aesthetic tone effectively convey the intended emotion and mood described in the prompt?
|
| 24 |
+
## Style Control
|
| 25 |
+
- Style Control: Does the image accurately capture and represent the specific artistic style requested in the prompt (e.g., Van Gogh's brushwork, Cyberpunk aesthetic)?"""
|
| 26 |
+
|
| 27 |
+
ALIGNMENT_CHECKLIST = """## Attributes
|
| 28 |
+
- Quantity: Does the number of objects in the image match the quantity specified in the prompt?
|
| 29 |
+
- Facial Expression: Does the facial expression of the person or animal accurately reflect the emotional state specified in the prompt?
|
| 30 |
+
- Material Properties: Do the materials of objects in the image match the material descriptions in the prompt?
|
| 31 |
+
- Color: Do the colors of objects in the image match the color specifications in the prompt?
|
| 32 |
+
- Shape: Do the shapes of objects in the image match the shape descriptions in the prompt?
|
| 33 |
+
- Size: Do the sizes of objects in the image match the size specifications in the prompt?
|
| 34 |
+
## Actions
|
| 35 |
+
- Contact Interaction: If the prompt involves physical contact between subjects, is the contact interaction depicted naturally and realistically?
|
| 36 |
+
- Non-contact Interaction: If the prompt involves non-contact relationships between subjects, is the spatial and social relationship depicted naturally and logically?
|
| 37 |
+
- Full-body Action: Does the overall posture and body action of the subject (person or animal) accurately perform the activity described in the prompt?
|
| 38 |
+
## Layout
|
| 39 |
+
- 2D Space: Are the relative positions of objects on the 2D plane (e.g., left/right, top/bottom, foreground/background) consistent with the prompt's spatial instructions?
|
| 40 |
+
- 3D Space: Does the layout, occlusion, and relative position of objects in 3D space conform to the prompt requirements or spatial logic?
|
| 41 |
+
## Relations
|
| 42 |
+
- Composition Relationship: Does the image successfully integrate multiple elements into a visually coherent and logically consistent whole?
|
| 43 |
+
- Difference/Similarity: Are the specified differences or similarities in shape, color, or material between objects accurately represented?
|
| 44 |
+
- Containment: Are the containment or enclosure relationships between objects correctly depicted?
|
| 45 |
+
## Scene
|
| 46 |
+
- Real-world Scene: Does the scene type and environmental setting (e.g., office, forest, street) match the location described in the prompt?
|
| 47 |
+
- Virtual Scene: Are the elements within a fictional or fantasy scene internally consistent and logically coherent?"""
|
| 48 |
+
|
| 49 |
+
REAL_WORLD_FIDELITY_CHECKLIST = """## Fairness
|
| 50 |
+
- Social Bias: Does the image avoid reinforcing social biases by automatically associating specific genders with particular professions or settings?
|
| 51 |
+
- Cultural Fairness: Is the image free from stereotypical portrayals based on region, race, or cultural background?
|
| 52 |
+
## Safety & Compliance
|
| 53 |
+
- Safety & Compliance: Is the image safe and compliant, effectively avoiding prohibited content such as pornography, violence, or hate symbols?
|
| 54 |
+
## World Knowledge
|
| 55 |
+
- Animals: Are real-world animals depicted with anatomically accurate features and realistic biological details?
|
| 56 |
+
- Objects: Are the typical appearance, structure, brand logo, or iconic characteristics of real-world items accurately reproduced?
|
| 57 |
+
- Information Visualization: Does the image accurately and clearly translate abstract or scientific concepts from the prompt into an effective and understandable visual form?
|
| 58 |
+
- Temporal Characteristics: Does the image accurately reflect the iconic elements of a specific historical period (e.g., technology, clothing, architecture, lifestyle of that era)?
|
| 59 |
+
- Cultural Elements: Are the cultural elements (such as symbols, traditional clothing, rituals, and customs) accurately depicted and consistent with real-world cultural practices?"""
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
CREATIVE_GENERATION_CHECKLIST = """## Imagination
|
| 63 |
+
- Imagination: Does the image demonstrate creative originality and imaginative thinking when combining novel or surreal elements?
|
| 64 |
+
## Feature Matching
|
| 65 |
+
- Feature Matching: Are the multi-element fusion regions in the image visually seamless, without abrupt breaks, harsh edges, or logical contradictions?
|
| 66 |
+
## Logical Resolution
|
| 67 |
+
- Logical Resolution: Does the image accurately depict causal relationships between events (e.g., breaking glass → shards flying, rain → wet surfaces)?
|
| 68 |
+
## Text Rendering
|
| 69 |
+
- Text Accuracy: If the image contains text, is the text clear, legible, and free from garbled characters, misspellings, or typographical errors?
|
| 70 |
+
- Text Layout: Is the text layout (e.g., centering, alignment, line spacing, margins) in the image visually appealing and professionally structured?
|
| 71 |
+
- Font: Does the font style used in the image match the font type specified in the prompt (e.g., SimSun, Heiti, handwritten, serif)?
|
| 72 |
+
- Cross-lingual Generation: Does the image correctly follow the translation instructions in the prompt, producing accurate text in the target language?
|
| 73 |
+
## Design Applications
|
| 74 |
+
- Graphic Design: Does the graphic design (e.g., advertisement, poster) exhibit a clear information hierarchy, effective visual guidance, and professional layout?
|
| 75 |
+
- Product Design: Does the product design in the image demonstrate reasonable industrial design logic (e.g., ergonomic grip, logical interface placement, structural integrity)?
|
| 76 |
+
- Spatial Design: Does the interior or architectural space conform to the principles of perspective, proportion, and building design standards?
|
| 77 |
+
- Fashion Styling: Does the clothing cut and silhouette match the style described in the prompt (e.g., Hanfu, cyberpunk, haute couture)? Does the makeup style (e.g., smoky eyes, nude makeup, theatrical look) suit the occasion and character setting?
|
| 78 |
+
- Game Design: Do the game props and UI elements have practical in-game usability (e.g., icon recognizability, interactive affordances, clear feedback cues)?
|
| 79 |
+
- Art Design: Does the image successfully demonstrate the specific artistic design style required by the prompt (e.g., unique brushstrokes, distinctive color scheme, coherent artistic language)?
|
| 80 |
+
## Visual Storytelling
|
| 81 |
+
- Cinematic Style: Does the image reproduce the signature visual language of the specific director referenced in the prompt (e.g., Wes Anderson's symmetrical composition, Wong Kar-wai's warm color palette)?
|
| 82 |
+
- Camera / Lens Style: Does the image reflect the characteristic imaging effects of the specific photographic equipment or lens referenced in the prompt (e.g., film grain, bokeh, digital sharpening)?
|
| 83 |
+
- Storyboard Creation: Does the image's scene composition follow the panel layout requirements outlined in the prompt (e.g., three-panel, four-panel, split-screen)?
|
| 84 |
+
- Shot Sizes: Does the image meet the framing and shot size requirements specified in the prompt (e.g., close-up, medium shot, wide shot)?
|
| 85 |
+
- Composition: Does the image follow the specific composition rules required by the prompt (e.g., rule of thirds, golden ratio, leading lines)?
|
| 86 |
+
- Angles: Does the camera angle comply with the prompt's specification (e.g., bird's-eye view, low angle, Dutch angle)?
|
| 87 |
+
- Comic Creation: Does the image conform to the comic style required by the prompt (e.g., American comics, Japanese manga, European BD)?"""
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
DIM_TO_CHECKLIST = {
|
| 91 |
+
"Quality": QUALITY_CHECKLIST,
|
| 92 |
+
"Aesthetics": AESTHETICS_CHECKLIST,
|
| 93 |
+
"Alignment": ALIGNMENT_CHECKLIST,
|
| 94 |
+
"Real-world Fidelity": REAL_WORLD_FIDELITY_CHECKLIST,
|
| 95 |
+
"Creative Generation": CREATIVE_GENERATION_CHECKLIST,
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
SYSTEM_PROMPT = (
|
| 99 |
+
"You are an expert evaluator for text-to-image (T2I) generation quality. "
|
| 100 |
+
"Given an image and the text prompt used to generate it, you evaluate the image "
|
| 101 |
+
"on specific quality criteria using a structured checklist."
|
| 102 |
+
)
|
| 103 |
+
|
| 104 |
+
USER_PROMPT_TEMPLATE = """\
|
| 105 |
+
# Text Prompt Used to Generate the Image
|
| 106 |
+
{prompt}
|
| 107 |
+
|
| 108 |
+
# Generated Image
|
| 109 |
+
<image>
|
| 110 |
+
|
| 111 |
+
# Evaluation Dimension
|
| 112 |
+
{level1_dim}
|
| 113 |
+
|
| 114 |
+
# Scoring Rules
|
| 115 |
+
- **0 (Fail)**: Clear defect present. Would noticeably reduce image quality.
|
| 116 |
+
- **1 (Pass)**: No defect. Meets baseline expectations.
|
| 117 |
+
- **2 (Excel)**: Exceptionally executed. Only when concrete excellence is observable.
|
| 118 |
+
- **N/A**: This criterion does not apply to this image/prompt.
|
| 119 |
+
|
| 120 |
+
# Evaluation Checklist
|
| 121 |
+
{format_checklist}
|
| 122 |
+
|
| 123 |
+
# Output Format
|
| 124 |
+
Respond with a valid JSON object only (no markdown code blocks):
|
| 125 |
+
{{
|
| 126 |
+
"{{level2_dim}}": {{
|
| 127 |
+
"{{level3_dim}}": {{"score": 0|1|2}},
|
| 128 |
+
"{{level3_dim}}": {{"score": "N/A"}}
|
| 129 |
+
}}
|
| 130 |
+
}}"""
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def parse_dims_by_level1(dims_en_str):
|
| 134 |
+
"""
|
| 135 |
+
Parse dims_en string, group by level-1 dimension.
|
| 136 |
+
Input: "Quality / Realism / Physical Logic; Aesthetics / Color Harmony / Color Harmony"
|
| 137 |
+
Output: {"Quality": [("Realism", "Physical Logic")], "Aesthetics": [("Color Harmony", "Color Harmony")]}
|
| 138 |
+
"""
|
| 139 |
+
result = defaultdict(list)
|
| 140 |
+
parts = [p.strip() for p in dims_en_str.split(';')]
|
| 141 |
+
for p in parts:
|
| 142 |
+
levels = [l.strip() for l in p.split('/')]
|
| 143 |
+
if len(levels) >= 3:
|
| 144 |
+
result[levels[0]].append((levels[1], levels[2]))
|
| 145 |
+
elif len(levels) == 2:
|
| 146 |
+
result[levels[0]].append((levels[1], levels[1]))
|
| 147 |
+
return dict(result)
|
compute_scores.py
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Compute all models' scores at Level-1, Level-2, Level-3.
|
| 3 |
+
|
| 4 |
+
Usage:
|
| 5 |
+
python compute_scores.py --input "xxx"
|
| 6 |
+
python compute_scores.py --hf-repo "xxx"
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
import argparse
|
| 10 |
+
import json
|
| 11 |
+
import sys
|
| 12 |
+
from collections import defaultdict
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
|
| 15 |
+
import pandas as pd
|
| 16 |
+
|
| 17 |
+
from score_utils import (
|
| 18 |
+
aggregate_total_score,
|
| 19 |
+
compute_dimension_score,
|
| 20 |
+
extract_json_from_response,
|
| 21 |
+
fix_score_json,
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
RESPONSE_PREFIX_TO_DIM = {
|
| 25 |
+
"quality_response_": "Quality",
|
| 26 |
+
"aesthetics_response_": "Aesthetics",
|
| 27 |
+
"alignment_response_": "Alignment",
|
| 28 |
+
"creative_generation_response_": "Creative Generation",
|
| 29 |
+
"real_world_fidelity_response_": "Real-world Fidelity",
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
LEVEL1_DIMS = list(RESPONSE_PREFIX_TO_DIM.values())
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def load_data(input_path=None, hf_repo=None):
|
| 36 |
+
if input_path:
|
| 37 |
+
records = []
|
| 38 |
+
with open(input_path, "r", encoding="utf-8") as f:
|
| 39 |
+
for line in f:
|
| 40 |
+
if line.strip():
|
| 41 |
+
records.append(json.loads(line))
|
| 42 |
+
return records
|
| 43 |
+
|
| 44 |
+
if hf_repo:
|
| 45 |
+
from huggingface_hub import hf_hub_download
|
| 46 |
+
local_file = hf_hub_download(
|
| 47 |
+
repo_id=hf_repo,
|
| 48 |
+
filename="qwen_image_bench_hf_v0518.jsonl",
|
| 49 |
+
repo_type="dataset",
|
| 50 |
+
)
|
| 51 |
+
return load_data(input_path=local_file)
|
| 52 |
+
|
| 53 |
+
print("ERROR: Provide --input or --hf-repo")
|
| 54 |
+
sys.exit(1)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def detect_models(records):
|
| 58 |
+
first = records[0]
|
| 59 |
+
models = []
|
| 60 |
+
prefix = "quality_response_"
|
| 61 |
+
for key in first:
|
| 62 |
+
if key.startswith(prefix):
|
| 63 |
+
model_name = key[len(prefix):]
|
| 64 |
+
models.append(model_name)
|
| 65 |
+
return models
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def compute_all_scores(records, models):
|
| 69 |
+
model_row_scores = {m: [] for m in models}
|
| 70 |
+
|
| 71 |
+
for row in records:
|
| 72 |
+
row_id = row["ID"]
|
| 73 |
+
for model in models:
|
| 74 |
+
dim_results = {}
|
| 75 |
+
for prefix, dim_name in RESPONSE_PREFIX_TO_DIM.items():
|
| 76 |
+
key = prefix + model
|
| 77 |
+
resp = row.get(key, "")
|
| 78 |
+
if not resp:
|
| 79 |
+
continue
|
| 80 |
+
score_json = extract_json_from_response(resp)
|
| 81 |
+
if score_json is None:
|
| 82 |
+
continue
|
| 83 |
+
score_json = fix_score_json(score_json, dim_name)
|
| 84 |
+
dim_results[dim_name] = compute_dimension_score(score_json)
|
| 85 |
+
|
| 86 |
+
total = aggregate_total_score(dim_results)
|
| 87 |
+
model_row_scores[model].append({
|
| 88 |
+
"ID": row_id,
|
| 89 |
+
"dims": dim_results,
|
| 90 |
+
"total_score": total,
|
| 91 |
+
})
|
| 92 |
+
|
| 93 |
+
return model_row_scores
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def _safe_mean(values):
|
| 97 |
+
valid = [v for v in values if v is not None]
|
| 98 |
+
return sum(valid) / len(valid) if valid else None
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def aggregate_model_scores(model_row_scores):
|
| 102 |
+
results = {}
|
| 103 |
+
for model, rows in model_row_scores.items():
|
| 104 |
+
l1_accum = defaultdict(list)
|
| 105 |
+
l2_accum = defaultdict(lambda: defaultdict(list))
|
| 106 |
+
total_accum = []
|
| 107 |
+
|
| 108 |
+
for row in rows:
|
| 109 |
+
if row["total_score"] is not None:
|
| 110 |
+
total_accum.append(row["total_score"])
|
| 111 |
+
for dim_name, dim_data in row["dims"].items():
|
| 112 |
+
l1_score = dim_data.get("level1_score")
|
| 113 |
+
if l1_score is not None:
|
| 114 |
+
l1_accum[dim_name].append(l1_score)
|
| 115 |
+
for l2_name, l2_score in dim_data.get("level2_scores", {}).items():
|
| 116 |
+
if l2_score is not None:
|
| 117 |
+
l2_accum[dim_name][l2_name].append(l2_score)
|
| 118 |
+
|
| 119 |
+
results[model] = {
|
| 120 |
+
"total": _safe_mean(total_accum),
|
| 121 |
+
"level1": {d: _safe_mean(scores) for d, scores in l1_accum.items()},
|
| 122 |
+
"level2": {
|
| 123 |
+
d: {l2: _safe_mean(scores) for l2, scores in l2_dict.items()}
|
| 124 |
+
for d, l2_dict in l2_accum.items()
|
| 125 |
+
},
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
return results
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
def print_results(agg):
|
| 132 |
+
models = sorted(agg.keys(), key=lambda m: agg[m]["total"] or 0, reverse=True)
|
| 133 |
+
|
| 134 |
+
print("\n" + "=" * 100)
|
| 135 |
+
print("MODEL SCORES SUMMARY (sorted by Total)")
|
| 136 |
+
print("=" * 100)
|
| 137 |
+
|
| 138 |
+
header = f"{'Model':<28}"
|
| 139 |
+
for dim in LEVEL1_DIMS:
|
| 140 |
+
short = dim.replace("Real-world Fidelity", "RWFidelity").replace("Creative Generation", "Creative")
|
| 141 |
+
header += f"{short:>12}"
|
| 142 |
+
header += f"{'Total':>10}"
|
| 143 |
+
print(header)
|
| 144 |
+
print("-" * 100)
|
| 145 |
+
|
| 146 |
+
for model in models:
|
| 147 |
+
data = agg[model]
|
| 148 |
+
line = f"{model:<28}"
|
| 149 |
+
for dim in LEVEL1_DIMS:
|
| 150 |
+
val = data["level1"].get(dim)
|
| 151 |
+
line += f"{val:>12.2f}" if val is not None else f"{'N/A':>12}"
|
| 152 |
+
total = data["total"]
|
| 153 |
+
line += f"{total:>10.2f}" if total is not None else f"{'N/A':>10}"
|
| 154 |
+
print(line)
|
| 155 |
+
|
| 156 |
+
print("\n" + "=" * 100)
|
| 157 |
+
print("LEVEL-2 DETAIL")
|
| 158 |
+
print("=" * 100)
|
| 159 |
+
|
| 160 |
+
for dim in LEVEL1_DIMS:
|
| 161 |
+
all_l2 = set()
|
| 162 |
+
for model in models:
|
| 163 |
+
all_l2.update(agg[model]["level2"].get(dim, {}).keys())
|
| 164 |
+
if not all_l2:
|
| 165 |
+
continue
|
| 166 |
+
all_l2 = sorted(all_l2)
|
| 167 |
+
|
| 168 |
+
print(f"\n--- {dim} ---")
|
| 169 |
+
header = f"{'Model':<28}"
|
| 170 |
+
for l2 in all_l2:
|
| 171 |
+
header += f"{l2[:18]:>20}"
|
| 172 |
+
print(header)
|
| 173 |
+
print("-" * (28 + 20 * len(all_l2)))
|
| 174 |
+
|
| 175 |
+
for model in models:
|
| 176 |
+
line = f"{model:<28}"
|
| 177 |
+
l2_data = agg[model]["level2"].get(dim, {})
|
| 178 |
+
for l2 in all_l2:
|
| 179 |
+
val = l2_data.get(l2)
|
| 180 |
+
line += f"{val:>20.2f}" if val is not None else f"{'N/A':>20}"
|
| 181 |
+
print(line)
|
| 182 |
+
|
| 183 |
+
print()
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
def save_results(agg, output_dir):
|
| 187 |
+
output_dir = Path(output_dir)
|
| 188 |
+
models = sorted(agg.keys(), key=lambda m: agg[m]["total"] or 0, reverse=True)
|
| 189 |
+
|
| 190 |
+
xlsx_path = output_dir / "scores_result.xlsx"
|
| 191 |
+
|
| 192 |
+
with pd.ExcelWriter(xlsx_path, engine="openpyxl") as writer:
|
| 193 |
+
# Sheet 1: Level-1 summary
|
| 194 |
+
summary_data = []
|
| 195 |
+
for model in models:
|
| 196 |
+
data = agg[model]
|
| 197 |
+
row = {"Model": model}
|
| 198 |
+
for dim in LEVEL1_DIMS:
|
| 199 |
+
row[dim] = data["level1"].get(dim)
|
| 200 |
+
row["Total"] = data["total"]
|
| 201 |
+
summary_data.append(row)
|
| 202 |
+
df_summary = pd.DataFrame(summary_data)
|
| 203 |
+
df_summary.to_excel(writer, sheet_name="Level-1 Summary", index=False)
|
| 204 |
+
|
| 205 |
+
# One sheet per Level-1 dimension showing Level-2 scores
|
| 206 |
+
for dim in LEVEL1_DIMS:
|
| 207 |
+
all_l2 = set()
|
| 208 |
+
for model in models:
|
| 209 |
+
all_l2.update(agg[model]["level2"].get(dim, {}).keys())
|
| 210 |
+
if not all_l2:
|
| 211 |
+
continue
|
| 212 |
+
all_l2 = sorted(all_l2)
|
| 213 |
+
|
| 214 |
+
detail_data = []
|
| 215 |
+
for model in models:
|
| 216 |
+
row = {"Model": model}
|
| 217 |
+
l2_data = agg[model]["level2"].get(dim, {})
|
| 218 |
+
for l2 in all_l2:
|
| 219 |
+
row[l2] = l2_data.get(l2)
|
| 220 |
+
detail_data.append(row)
|
| 221 |
+
|
| 222 |
+
df_detail = pd.DataFrame(detail_data)
|
| 223 |
+
sheet_name = dim[:31] # Excel sheet name max 31 chars
|
| 224 |
+
df_detail.to_excel(writer, sheet_name=sheet_name, index=False)
|
| 225 |
+
|
| 226 |
+
print(f"Results saved to: {xlsx_path}")
|
| 227 |
+
|
| 228 |
+
# Also save detail JSON
|
| 229 |
+
json_path = output_dir / "scores_detail.json"
|
| 230 |
+
serializable = {}
|
| 231 |
+
for model in models:
|
| 232 |
+
serializable[model] = {
|
| 233 |
+
"total": agg[model]["total"],
|
| 234 |
+
"level1": agg[model]["level1"],
|
| 235 |
+
"level2": agg[model]["level2"],
|
| 236 |
+
}
|
| 237 |
+
with open(json_path, "w", encoding="utf-8") as f:
|
| 238 |
+
json.dump(serializable, f, ensure_ascii=False, indent=2)
|
| 239 |
+
print(f"Detail JSON saved to: {json_path}")
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
def main():
|
| 243 |
+
parser = argparse.ArgumentParser(description="Compute model scores from qwen image bench")
|
| 244 |
+
parser.add_argument("--input", default=None, help="Local JSONL file path")
|
| 245 |
+
parser.add_argument("--hf-repo", default=None, help="HuggingFace dataset repo ID")
|
| 246 |
+
parser.add_argument("--output-dir", default=None, help="Output directory (default: same as input)")
|
| 247 |
+
args = parser.parse_args()
|
| 248 |
+
|
| 249 |
+
print("Loading data...")
|
| 250 |
+
records = load_data(input_path=args.input, hf_repo=args.hf_repo)
|
| 251 |
+
print(f"Loaded {len(records)} rows")
|
| 252 |
+
|
| 253 |
+
models = detect_models(records)
|
| 254 |
+
print(f"Detected {len(models)} models: {', '.join(models)}")
|
| 255 |
+
|
| 256 |
+
print("Computing scores...")
|
| 257 |
+
model_row_scores = compute_all_scores(records, models)
|
| 258 |
+
|
| 259 |
+
agg = aggregate_model_scores(model_row_scores)
|
| 260 |
+
|
| 261 |
+
print_results(agg)
|
| 262 |
+
|
| 263 |
+
output_dir = args.output_dir or (str(Path(args.input).parent) if args.input else ".")
|
| 264 |
+
save_results(agg, output_dir)
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
if __name__ == "__main__":
|
| 268 |
+
main()
|
images/FLUX.2-pro/000001_9abeb34a.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000002_bd1f0d9c.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000003_084eb030.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000004_47a50d10.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000005_f83b4579.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000006_d7573ce9.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000007_8365206a.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000008_98c92727.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000009_23cf078c.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000010_b7e36647.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000011_cd05793f.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000012_6b200a51.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000013_d0fbf9af.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000014_3851b8a4.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000015_0066b679.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000016_79c5a9da.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000017_3efe4354.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000018_5e14985e.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000019_4f98ee48.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000020_f7df2284.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000021_5e9733cf.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000022_2de8a3c7.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000023_f1ff72bf.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000024_86745e09.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000025_fdd8f80a.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000026_116398a3.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000027_7b544ab3.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000028_15d1f13c.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000029_c7197226.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000030_7111ccf2.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000031_35b6a8b8.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000032_768d3860.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000033_1f0497dd.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000034_2ef76bac.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000035_207b5e9b.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000036_a270b72d.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000037_2cfc595e.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000038_a6f7b82e.png
ADDED
|
Git LFS Details
|
images/FLUX.2-pro/000039_31048b03.png
ADDED
|
Git LFS Details
|