--- language: - zh - en license: cc-by-nc-nd-4.0 task_categories: - image-to-image --- # 🚩 RedBench (REDEdit-Bench)
## 🔥 Introduction **RedBench** (also known as REDEdit-Bench) is a comprehensive benchmark designed to evaluate the capabilities of current image editing models. This dataset was introduced in the [FireRed-Image-Edit-1.0 Technical Report](https://huggingface.co/papers/2602.13344). Our main goal is to build more diverse scenarios and editing instructions that better align with human language. We collected over 3,000 images from the internet, and after careful expert-designed selection, we constructed **1,673 bilingual (Chinese–English) editing pairs** across **15 categories**. 📢 **Note on Dataset Size**: The original benchmark described in the paper consists of 1,673 image pairs. However, due to strict redistribution licensing restrictions on certain commercial assets, the public release version has been curated to **1,542 pairs**. This ensures full compliance with copyright laws while maintaining the diversity and quality of the benchmark. ## ✨ Key Features - **🗣️ Human-Aligned Instructions**: Diverse scenarios and editing instructions that closely mimic real-world human usage. - **🌐 Bilingual Support**: Full support for both Chinese and English editing instructions. - **🛡️ Quality Assurance**: Carefully curated by experts from a massive collection of source images. - **🧩 Diverse Tasks**: Covers 15 distinct categories including Object Addition, Removal, Replacement, Style Transfer, and more. ## 📂 Data Structure & Examples The dataset is organized in JSONL format. Each entry contains the image source, bilingual instructions, and the specific task category. ### Task Categories The benchmark covers 15 different task categories: | Category | Count | Description | |----------|-------|-------------| | add | 143 | Object Addition | | adjust | 156 | Attribute Adjustment | | background | 91 | Background Modification | | beauty | 79 | Beauty Enhancement | | color | 99 | Color Modification | | compose | 100 | Image Composition | | extract | 95 | Element Extraction | | lowlevel | 47 | Low-level Processing | | motion | 78 | Motion Addition | | portrait | 102 | Portrait Editing | | remove | 147 | Object Removal | | replace | 140 | Object Replacement | | stylize | 92 | Style Transfer | | text | 123 | Text Editing | | viewpoint | 50 | Viewpoint Change | | all | 1542 | All Tasks | ### Sample Data ```json {"id": "1", "source": "redbench/add/add-1.png", "a_to_b_instructions": "在图片中绿色植物上增加一只七星瓢虫", "a_to_b_instructions_eng": "Add a seven-spotted ladybug on the green plant in the picture", "task": "add"} {"id": "2", "source": "redbench/add/add-2.png", "a_to_b_instructions": "在咖啡杯里加一个白色心形拉花", "a_to_b_instructions_eng": "Add a white heart-shaped latte art in the coffee cup", "task": "add"} {"id": "3", "source": "redbench/add/add-3.png", "a_to_b_instructions": "在马路上增加一个穿运动服跑步的男人", "a_to_b_instructions_eng": "Add a man running in sportswear on the road", "task": "add"} ``` # Generate Images Before evaluating the model, you first need to use the provided JSONL file (which contains metadata information) along with the original image files to generate the corresponding edited images by editing model. We provide the inference script `redbench_infer.py` for generating edited images. This script supports multi-GPU distributed inference using Accelerate. ## Dependencies Install required dependencies: ```bash pip install accelerate diffusers transformers pillow tqdm ``` Then download our dataset [REDEdit_Bench.tar](https://huggingface.co/datasets/FireRedTeam/REDEdit_Bench/resolve/main/REDEdit_Bench.tar?download=true). Please download the tar file and extract it. ## Usage To run the inference script, use the following command: ```bash accelerate launch --num_processes