Update README.md
Browse files2 unmodified lines34567891 unmodified line11121314151613 unmodified lines30313233343536375 unmodified lines434445464748496 unmodified lines565758596061621 unmodified line64656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810930 unmodified lines1401411421431441453 unmodified lines1491501511521531544 unmodified lines1591601611622 unmodified lines---<p align="center"><img src="assets/logo.png" width="65%"></p><p align="center">1 unmodified line<a href="https://arxiv.org/abs/2509.23909"><img src="https://img.shields.io/badge/arXiv%20paper-2509.23909-b31b1b.svg" alt="arxiv"></a><a href="https://huggingface.co/collections/EditScore/editscore-68d8e27ee676981221db3cfe"><img src="https://img.shields.io/badge/EditScore-🤗-yellow" alt="model"></a><a href="https://huggingface.co/datasets/EditScore/EditReward-Bench"><img src="https://img.shields.io/badge/EditReward--Bench-🤗-yellow" alt="dataset"></a></p><h4 align="center">13 unmodified lines- **Versatile Applications**: Ready to use as a best-in-class reranker to improve editing outputs, or as a high-fidelity reward signal for **stable and effective Reinforcement Learning (RL) fine-tuning**.## 🔥 News- **2025-09-30**: We release **OmniGen2-EditScore7B**, unlocking online RL For Image Editing via high-fidelity EditScore. LoRA weights are available at [Hugging Face](https://huggingface.co/OmniGen2/OmniGen2-EditScore7B) and [ModelScope](https://www.modelscope.cn/models/OmniGen2/OmniGen2-EditScore7B).- **2025-09-30**: We are excited to release **EditScore** and **EditReward-Bench**! Model weights and the benchmark dataset are now publicly available. You can access them on Hugging Face: [Models Collection](https://huggingface.co/collections/EditScore/editscore-68d8e27ee676981221db3cfe) and [Benchmark Dataset](https://huggingface.co/datasets/EditScore/EditReward-Bench), and on ModelScope: [Models Collection](https://www.modelscope.cn/collections/EditScore-8b0d53aa945d4e) and [Benchmark Dataset](https://www.modelscope.cn/datasets/EditScore/EditReward-Bench).## 📖 IntroductionWhile Reinforcement Learning (RL) holds immense potential for this domain, its progress has been severely hindered by the absence of a high-fidelity, efficient reward signal.5 unmodified lines- **A Powerful & Versatile Tool**: Guided by our benchmark, we developed the **EditScore** model series. Through meticulous data curation and an effective self-ensembling strategy, EditScore sets a new state of the art for open-source reward models, even surpassing the accuracy of leading proprietary VLMs.<p align="center"><img src="assets/table_reward_model_results.png" width="95%"><br><em>Benchmark results on EditReward-Bench.</em></p>6 unmodified linesThis repository releases both the **EditScore** models and the **EditReward-Bench** dataset to facilitate future research in reward modeling, policy optimization, and AI-driven model improvement.<p align="center"><img src="assets/figure_edit_results.png" width="95%"><br><em>EditScore as a superior reward signal for image editing.</em></p>1 unmodified line## 📌 TODOWe are actively working on improving EditScore and expanding its capabilities. Here's what's next:- [ ] Release RL training code applying EditScore to OmniGen2.- [ ] Provide Best-of-N inference scripts for OmniGen2, Flux-dev-Kontext, and Qwen-Image-Edit.## 🚀 Quick Start### 🛠️ Environment Setup#### ✅ Recommended Setup```bash# 1. Clone the repogit clone git@github.com:VectorSpaceLab/EditScore.gitcd EditScore# 2. (Optional) Create a clean Python environmentconda create -n editscore python=3.12conda activate editscore# 3. Install dependencies# 3.1 Install PyTorch (choose correct CUDA version)pip install torch==2.7.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu126# 3.2 Install other required packagespip install -r requirements.txt# EditScore runs even without vllm, though we recommend install it for best performance.pip install vllm```#### 🌏 For users in Mainland China```bash# Install PyTorch from a domestic mirrorpip install torch==2.7.1 torchvision --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu126# Install other dependencies from Tsinghua mirrorpip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple# EditScore runs even without vllm, though we recommend install it for best performance.pip install vllm -i https://pypi.tuna.tsinghua.edu.cn/simple```---30 unmodified lines---## 📊 Benchmark Your Image-Editing Reward ModelWe provide an evaluation script to benchmark reward models on **EditReward-Bench**. To evaluate your own custom reward model, simply create a scorer class with a similar interface and update the script.```bash# This script will evaluate the default EditScore model on the benchmark3 unmodified linesbash evaluate_vllm.sh```## ❤️ Citing UsIf you find this repository or our work useful, please consider giving a star ⭐ and citation 🦖, which would be greatly appreciated:4 unmodified linesjournal={arXiv preprint arXiv:2509.23909},year={2025}}```2 unmodified lines34567891 unmodified line111213141516171813 unmodified lines32333435363738394041425 unmodified lines484950515253546 unmodified lines616263646566671 unmodified line6970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812930 unmodified lines1601611621631641651661671681691701713 unmodified lines1751761771781791801811821831841851861874 unmodified lines1921931941952 unmodified lines---<p align="center"><img src="https://raw.githubusercontent.com/VectorSpaceLab/EditScore/refs/heads/main/assets/logo.png" width="65%"></p><p align="center">1 unmodified line<a href="https://arxiv.org/abs/2509.23909"><img src="https://img.shields.io/badge/arXiv%20paper-2509.23909-b31b1b.svg" alt="arxiv"></a><a href="https://huggingface.co/collections/EditScore/editscore-68d8e27ee676981221db3cfe"><img src="https://img.shields.io/badge/EditScore-🤗-yellow" alt="model"></a><a href="https://huggingface.co/datasets/EditScore/EditReward-Bench"><img src="https://img.shields.io/badge/EditReward--Bench-🤗-yellow" alt="dataset"></a><a href="https://huggingface.co/datasets/EditScore/EditScore-Reward-Data"><img src="https://img.shields.io/badge/EditScore--Reward--Data-🤗-yellow" alt="dataset"></a><a href="https://huggingface.co/datasets/EditScore/EditScore-RL-Data"><img src="https://img.shields.io/badge/EditScore--RL--Data-🤗-yellow" alt="dataset"></a></p><h4 align="center">13 unmodified lines- **Versatile Applications**: Ready to use as a best-in-class reranker to improve editing outputs, or as a high-fidelity reward signal for **stable and effective Reinforcement Learning (RL) fine-tuning**.## 🔥 News- **2025-10-16**: Training datasets [EditScore-Reward-Data](https://huggingface.co/datasets/EditScore/EditScore-Reward-Data) and [EditScore-RL-Data](https://huggingface.co/datasets/EditScore/EditScore-RL-Data) are available.- **2025-10-15**: **EditScore** is now available on PyPI — install it easily with `pip install editscore`.- **2025-10-15**: Best-of-N inference scripts for OmniGen2, Flux-dev-Kontext, and Qwen-Image-Edit are now available! See [this](#apply-editscore-to-image-editing) for details.- 2025-09-30: We release **OmniGen2-EditScore7B**, unlocking online RL For Image Editing via high-fidelity EditScore. LoRA weights are available at [Hugging Face](https://huggingface.co/OmniGen2/OmniGen2-EditScore7B) and [ModelScope](https://www.modelscope.cn/models/OmniGen2/OmniGen2-EditScore7B).- 2025-09-30: We are excited to release **EditScore** and **EditReward-Bench**! Model weights and the benchmark dataset are now publicly available. You can access them on Hugging Face: [Models Collection](https://huggingface.co/collections/EditScore/editscore-68d8e27ee676981221db3cfe) and [Benchmark Dataset](https://huggingface.co/datasets/EditScore/EditReward-Bench), and on ModelScope: [Models Collection](https://www.modelscope.cn/collections/EditScore-8b0d53aa945d4e) and [Benchmark Dataset](https://www.modelscope.cn/datasets/EditScore/EditReward-Bench).## 📖 IntroductionWhile Reinforcement Learning (RL) holds immense potential for this domain, its progress has been severely hindered by the absence of a high-fidelity, efficient reward signal.5 unmodified lines- **A Powerful & Versatile Tool**: Guided by our benchmark, we developed the **EditScore** model series. Through meticulous data curation and an effective self-ensembling strategy, EditScore sets a new state of the art for open-source reward models, even surpassing the accuracy of leading proprietary VLMs.<p align="center"><img src="https://raw.githubusercontent.com/VectorSpaceLab/EditScore/refs/heads/main/assets/table_reward_model_results.png" width="95%"><br><em>Benchmark results on EditReward-Bench.</em></p>6 unmodified linesThis repository releases both the **EditScore** models and the **EditReward-Bench** dataset to facilitate future research in reward modeling, policy optimization, and AI-driven model improvement.<p align="center"><img src="https://raw.githubusercontent.com/VectorSpaceLab/EditScore/refs/heads/main/assets/figure_edit_results.png" width="95%"><br><em>EditScore as a superior reward signal for image editing.</em></p>1 unmodified line## 📌 TODOWe are actively working on improving EditScore and expanding its capabilities. Here's what's next:- [x] Release training data for reward model and online RL.- [ ] Release RL training code applying EditScore to OmniGen2.- [x] Provide Best-of-N inference scripts for OmniGen2, Flux-dev-Kontext, and Qwen-Image-Edit.## 🚀 Quick Start### 🛠️ Environment SetupWe offer two ways to install EditScore. Choose the one that best fits your needs.**Method 1: Install from PyPI (Recommended for Users)**: If you want to use EditScore as a library in your own project.**Method 2: Install from Source (For Developers)**: If you plan to contribute to the code, modify it, or run the examples in this repository#### Prerequisites: Installing PyTorchBoth installation methods require PyTorch to be installed first, as its version is dependent on your system's CUDA setup.```bash# (Optional) Create a clean Python environmentconda create -n editscore python=3.12conda activate editscore# Choose the command that matches your CUDA version.# This example is for CUDA 12.6.pip install torch==2.7.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu126````<details><summary>🌏 For users in Mainland China</summary>```bash# Install PyTorch from a domestic mirrorpip install torch==2.7.1 torchvision --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu126```</details>#### Method 1: Install from PyPI (Recommended for Users)```bashpip install -U editscore```#### Method 2: Install from Source (For Developers)This method gives you a local, editable version of the project.1. Clone the repository```bashgit clone https://github.com/VectorSpaceLab/EditScore.gitcd EditScore```2. Install EditScore in editable mode```bashpip install -e .```#### ✅ (Recommended) Install Optional High-Performance DependenciesFor the best performance, especially during inference, we highly recommend installing vllm.```bashpip install vllm```---30 unmodified lines---## 📊 Benchmark Your Image-Editing Reward Model#### Install benchmark dependenciesTo use example code for benchmark, run following```bashpip install -r requirements.txt```We provide an evaluation script to benchmark reward models on **EditReward-Bench**. To evaluate your own custom reward model, simply create a scorer class with a similar interface and update the script.```bash# This script will evaluate the default EditScore model on the benchmark3 unmodified linesbash evaluate_vllm.sh```## Apply EditScore to Image EditingWe offer two example use cases for your exploration:- **Best-of-N selection**: Use EditScore to automatically pick the most preferred image among multiple candidates.- **Reinforcement fine-tuning**: Use EditScore as a reward model to guide RL-based optimization.For detailed instructions and examples, please refer to the [documentation](examples/OmniGen2-RL/README.md).## ❤️ Citing UsIf you find this repository or our work useful, please consider giving a star ⭐ and citation 🦖, which would be greatly appreciated:4 unmodified linesjournal={arXiv preprint arXiv:2509.23909},year={2025}}```
README.md+61-28