Instructions to use sparkling621/EditHF-Reward with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sparkling621/EditHF-Reward with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("sparkling621/EditHF-Reward", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add model card for EditHF-Reward
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: diffusers
|
| 3 |
+
pipeline_tag: image-to-image
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# EditHF-Reward
|
| 7 |
+
|
| 8 |
+
This repository contains the weights for **EditHF-Reward**, an advanced image editing model based on **Qwen-Image-Edit** that has been refined using reinforcement learning with human-aligned feedback.
|
| 9 |
+
|
| 10 |
+
This model was introduced in the paper [EditHF-1M: A Million-Scale Rich Human Preference Feedback for Image Editing](https://huggingface.co/papers/2603.14916).
|
| 11 |
+
|
| 12 |
+
## Model Description
|
| 13 |
+
|
| 14 |
+
Recent text-guided image editing (TIE) models often suffer from issues such as artifacts, unexpected edits, or unaesthetic content. **EditHF-Reward** addresses these challenges by utilizing rewards from **EditHF**, a multimodal large language model (MLLM) trained on the **EditHF-1M** dataset.
|
| 15 |
+
|
| 16 |
+
**EditHF-1M** is a million-scale dataset featuring over 29 million human preference pairs and 148,000 human mean opinion ratings, covering three critical dimensions:
|
| 17 |
+
- **Visual Quality**: Reducing artifacts and improving aesthetic appeal.
|
| 18 |
+
- **Instruction Alignment**: Ensuring edited images accurately reflect the text instructions.
|
| 19 |
+
- **Attribute Preservation**: Maintaining the identity and characteristics of the original image.
|
| 20 |
+
|
| 21 |
+
By fine-tuning with reinforcement learning (RL) using these signals, this model achieves significantly improved performance and human alignment compared to its base version.
|
| 22 |
+
|
| 23 |
+
## Resources
|
| 24 |
+
|
| 25 |
+
- **Paper**: [EditHF-1M: A Million-Scale Rich Human Preference Feedback for Image Editing](https://huggingface.co/papers/2603.14916)
|
| 26 |
+
- **GitHub Repository**: [IntMeGroup/EditHF](https://github.com/IntMeGroup/EditHF)
|
| 27 |
+
|
| 28 |
+
## Citation
|
| 29 |
+
|
| 30 |
+
If you find this model useful in your research, please cite the following paper:
|
| 31 |
+
|
| 32 |
+
```bibtex
|
| 33 |
+
@article{edithf1m,
|
| 34 |
+
title={EditHF-1M: A Million-Scale Rich Human Preference Feedback for Image Editing},
|
| 35 |
+
author={Luo, Junyu and others},
|
| 36 |
+
journal={arXiv preprint arXiv:2603.14916},
|
| 37 |
+
year={2026}
|
| 38 |
+
}
|
| 39 |
+
```
|