CoolFace
Modelpublic

Qwen/Qwen-Image-Bench

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
99likes31kdownloads
Model Card

Q-Judger

<p align="center"> <a href="http://arxiv.org/abs/2605.28091"><img src="https://img.shields.io/badge/Paper-arXiv-b31b1b?logo=arxiv" alt="Paper"></a> <a href="https://github.com/QwenLM/Qwen-Image-Bench"><img src="https://img.shields.io/badge/GitHub-Repo-blue?logo=github" alt="GitHub"></a> <a href="https://huggingface.co/Qwen/Qwen-Image-Bench"><img src="https://img.shields.io/badge/JudgeModel-HuggingFace-ffd21e?logo=huggingface" alt="Model"></a> <a href="https://www.modelscope.cn/models/Qwen/Qwen-Image-Bench"><img src="https://img.shields.io/badge/JudgeModel-ModelScope-624aff?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDI0IDE0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8dGl0bGU+TW9kZWxTY29wZSBCYWRnZTwvdGl0bGU+CjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CjxnIGZpbGwtcnVsZT0ibm9uemVybyI+CjxwYXRoIGQ9Im0wIDIuNjY3aDIuNjY3djIuNjY3aC0yLjY2N3YtMi42Njd6bTggMi42NjZoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3oiIGZpbGw9IiMzNkNFRDAiLz4KPHBhdGggZD0ibTAgNS4zMzNoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3ptMi42NjcgMi42NjdoMi42NjZ2Mi42NjdoMi42Njd2Mi42NjZoLTUuMzMzdi01LjMzM3ptMC04aDUuMzMzdjIuNjY3aC0yLjY2N3YyLjY2NmgtMi42NjZ2LTUuMzMzem04IDhoMi42Njd2Mi42NjdoLTIuNjY3di0yLjY2N3oiIGZpbGw9IiM2MjRBRkYiLz4KPHBhdGggZD0ibTI0IDIuNjY3aC0yLjY2N3YyLjY2N2gyLjY2N3YtMi42Njd6bS04IDIuNjY2aC0yLjY2N3YyLjY2N2gyLjY2N3YtMi42Njd6IiBmaWxsPSIjMzZDRUQwIi8+CjxwYXRoIGQ9Im0yNCA1LjMzM2gtMi42Njd2Mi42NjdoMi42Njd2LTIuNjY3em0tMi42NjcgMi42NjdoLTIuNjY2djIuNjY3aC0yLjY2N3YyLjY2Nmg1LjMzM3YtNS4zMzN6bTAtOGgtNS4zMzN2Mi42NjdoMi42Njd2Mi42NjZoMi42NjZ2LTUuMzMzeiIgZmlsbD0iIzYyNEFGRiIvPgo8L2c+CjwvZz4KPC9zdmc+Cg==" alt="ModelScope"></a> <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> <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> </p>

A fine-tuned judge model for evaluating text-to-image (T2I) generation quality. Built on top of Qwen3.6-27B, it scores generated images across 5 hierarchical dimensions using structured checklists and outputs JSON-formatted evaluation results.

Links

ResourceLink
๐Ÿ“‘ Paperhttp://arxiv.org/abs/2605.28091
๐Ÿ“Š Benchmark Dataset (HuggingFace)https://huggingface.co/datasets/Qwen/Qwen-Image-Bench
๐Ÿ“Š Benchmark Dataset (ModelScope)https://www.modelscope.cn/datasets/Qwen/Qwen-Image-Bench
๐Ÿ’ป GitHubhttps://github.com/QwenLM/Qwen-Image-Bench
๐Ÿง‘โ€โš–๏ธ Q-Judger Modelhttps://huggingface.co/Qwen/Qwen-Image-Bench
๐Ÿง‘โ€โš–๏ธ Q-Judger Modelhttps://modelscope.cn/models/Qwen/Qwen-Image-Bench

Model Description

Q-Judger is a vision-language model fine-tuned specifically for automated evaluation of text-to-image generated images. Given a text prompt and a generated image, the model evaluates the image on fine-grained quality criteria organized in a 3-level hierarchy and outputs structured JSON scores.

  • โ€”Base Model: Qwen3.6-27B
  • โ€”Task: Image quality evaluation / judging
  • โ€”Input: Text prompt + generated image
  • โ€”Output: Structured JSON with per-dimension scores (0 = Fail, 1 = Pass, 2 = Excel, N/A)
  • โ€”Thinking Mode: Enabled โ€” the model uses chain-of-thought reasoning before producing the final JSON output

Evaluation Dimensions

The model evaluates images across 5 top-level dimensions, each with multiple sub-dimensions:

Quality

  • โ€”Realism: Physical Logic, Material Texture
  • โ€”Detail: Noise, Edge Clarity, Naturalness
  • โ€”Resolution: Resolution

Aesthetics

  • โ€”Composition: Composition
  • โ€”Color Harmony: Color Harmony
  • โ€”Lighting: Lighting & Atmosphere
  • โ€”Anatomical Portraiture: Anatomical Fidelity
  • โ€”Emotional Expression: Emotional Expression
  • โ€”Style Control: Style Control

Alignment

  • โ€”Attributes: Quantity, Facial Expression, Material Properties, Color, Shape, Size
  • โ€”Actions: Contact Interaction, Non-contact Interaction, Full-body Action
  • โ€”Layout: 2D Space, 3D Space
  • โ€”Relations: Composition Relationship, Difference/Similarity, Containment
  • โ€”Scene: Real-world Scene, Virtual Scene

Real-world Fidelity

  • โ€”Fairness: Social Bias, Cultural Fairness
  • โ€”Safety & Compliance: Safety & Compliance
  • โ€”World Knowledge: Animals, Objects, Information Visualization, Temporal Characteristics, Cultural Elements

Creative Generation

  • โ€”Imagination: Imagination
  • โ€”Feature Matching: Feature Matching
  • โ€”Logical Resolution: Logical Resolution
  • โ€”Text Rendering: Text Accuracy, Text Layout, Font, Cross-lingual Generation
  • โ€”Design Applications: Graphic Design, Product Design, Spatial Design, Fashion Styling, Game Design, Art Design
  • โ€”Visual Storytelling: Cinematic Style, Camera / Lens Style, Storyboard Creation, Shot Sizes, Composition, Angles, Comic Creation

Scoring Methodology

Raw Score Mapping

Raw ScoreMeaningMapped Score
0Fail0
1Pass60
2Excel100
N/ANot applicableExcluded

Aggregation

  1. 1.Level-3 โ†’ Level-2: Average all non-N/A Level-3 scores within a Level-2 category
  2. 2.Level-2 โ†’ Level-1: Average all Level-2 scores within a Level-1 dimension
  3. 3.Level-1 โ†’ Total: Average all Level-1 dimension scores

Human Agreement

We validate the judge model against human expert rankings by computing Spearman rank correlation ($\rho$) between the model's rankings and human expert rankings across the five L1 pillars and overall. All correlations are statistically significant ($p < 10^{-4}$, $N = 18$ models).

DimensionSpearman $\rho$
Quality0.89
Aesthetics0.89
Alignment0.89
Real-world Fidelity0.92
Creative Generation0.92
Overall0.92

Quick Start

Get the Inference Code

bash
git clone https://github.com/QwenLM/Qwen-Image-Bench.git
cd Qwen-Image-Bench

Installation

1. Create and activate a virtual environment with uv:

bash
uv venv myenv --python 3.11
source myenv/bin/activate

2. Install PyTorch (select the command matching your CUDA version):

See the official guide: https://pytorch.org/get-started/locally/

3. Install Python dependencies:

bash
uv pip install -r requirements.txt

This installs all required dependencies including ms-swift.

Run Inference

bash
python judge.py \
  --input your_data.jsonl \
  --model Qwen/Qwen-Image-Bench

Input Format

Prepare a CSV, JSON, or JSONL file with the following columns:

ColumnTypeDescription
IDintPrompt identifier (1-1000), must match benchmark metadata
promptstrThe text prompt used to generate the image
image_pathstrPath to the generated image file

Output Format

The model outputs a JSON object per dimension, structured as:

json
{
  "Level-2 Dimension": {
    "Level-3 Dimension": {"score": 0|1|2|"N/A"}
  }
}

Example (Quality dimension):

json
{
  "Realism": {
    "Physical Logic": {"score": 1},
    "Material Texture": {"score": 2}
  },
  "Detail": {
    "Noise": {"score": 1},
    "Edge Clarity": {"score": 1},
    "Naturalness": {"score": 1}
  },
  "Resolution": {
    "Resolution": {"score": 2}
  }
}

CLI Options

ArgumentDefaultDescription
--input(required)Input CSV/JSON/JSONL with ID, prompt, image_path
--model(required)HuggingFace model ID or local model path
--hf-bench-repo-HF dataset repo for bench metadata
--local-metadata-Local metadata file path (overrides default)
--max-batch-size24ms-swift maxbatchsize
--max-new-tokens4096Max generation tokens

Inference Parameters

The judge model uses fixed inference parameters for reproducibility:

ParameterValue
seed42
temperature0
top_k1
top_p1.0
repetition_penalty1.05
max_new_tokens4096
enable_thinkingTrue
max_batch_size24

Citation

If you find this model useful, please cite our paper:

bibtex
@misc{li2026qwenimagebenchgenerationcreationtexttoimage,
      title={Qwen-Image-Bench: From Generation to Creation in Text-to-Image Evaluation}, 
      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},
      year={2026},
      eprint={2605.28091},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2605.28091}, 
}

License

This project is licensed under the Apache License 2.0.