CREval is a comprehensive benchmark for evaluating image editing models. It assesses model outputs across three key dimensions:
- IF (Instruction Following) - How well the edited image follows the given editing instructions
- VC (Visual Coherence) - The overall visual consistency of the edited image
- VQ (Visual Quality) - The visual quality of the edited image
- Automated evaluation using GPT-4o
- Support for multiple evaluation dimensions (IF, VC, VQ)
- Batch processing capabilities
- Detailed scoring with weighted questions
- Extensible prompt templates for custom evaluation criteria
CREval-main/
├─bench
│ ├─image # original image
│ ├─questiions_all # questions root path
│ │ ├─IF # IF questions
│ │ ├─VC # VC questions
│ │ └─VQ # VQ questions
│ └─instruction.json # image-instruction annotation
└─code
├─prompt_templete # Prompt templates
│ └─exa # context example for each category
└─answer_with_gpt4o.py # Evaluation script
pip install -r requirements.txtPrepare your own API key and write it in the corresponding position in the code.
API_KEY = "sk-xx", BASE_URL = "https:xx"or
client.api_key = 'sk-xx', client.base_url = 'https://'Benchmark data must be downloaded separately. See CREval-Bench for details.
put your edited images in CREval/outputs_images/{modelname}
cd codepython answer_with_gpt4o.pyThat's it! Results will be saved to ../answers/, then calculate the score
python avg.pyPrepare the original image, then generate image-instruction pairs and evaluation questions for different dimensions.
# generate instructions
python write_instruction_with_gpt-4o.py \
# Generate evaluation questions from different dimensions
python gen_question_with_qwen_api.py
Evaluates whether the edited image correctly implements all editing instructions, including:
- Explicit requirements (e.g., "add red flowers")
- Implicit requirements derived from world knowledge (e.g., "ink painting style" implies specific visual characteristics)
- Object additions, deletions, and replacements
- Color, size, position, and material attributes
- Style transformations and constraints
Assesses the overall visual consistency and coherence of edited images.
Evaluates the visual quality of edited images.
For each evaluated image pair, the tool generates:
{
"filename": "image_name",
"questions": [
{
"question_id": "Q1",
"question": "Question text",
"choices": ["Yes", "No"],
"correct_answer": "Yes",
"model_answer": "Yes",
"explanation": "Detailed explanation...",
"weight": 1.0,
"is_correct": true
}
],
"final_score": 0.95
}Results are saved as JSON files with corresponding .txt files containing raw model responses.
If you use CREval in your research, please cite:
@article{wang2026creval,
title={CREval: An Automated Interpretable Evaluation for Creative Image Manipulation under Complex Instructions},
author={Wang, Chonghuinan and Chen, Zihan and Wei, Yuxiang and Jiang, Tianyi and Wu, Xiaohe and Li, Fan and Zuo, Wangmeng and Yao, Hongxun},
journal={arXiv preprint arXiv:2603.26174},
year={2026}
}This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For questions and issues, please open an issue on GitHub.