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
File size: 1,907 Bytes
8543475 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ---
library_name: diffusers
pipeline_tag: image-to-image
---
# EditHF-Reward
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.
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).
## Model Description
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.
**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:
- **Visual Quality**: Reducing artifacts and improving aesthetic appeal.
- **Instruction Alignment**: Ensuring edited images accurately reflect the text instructions.
- **Attribute Preservation**: Maintaining the identity and characteristics of the original image.
By fine-tuning with reinforcement learning (RL) using these signals, this model achieves significantly improved performance and human alignment compared to its base version.
## Resources
- **Paper**: [EditHF-1M: A Million-Scale Rich Human Preference Feedback for Image Editing](https://huggingface.co/papers/2603.14916)
- **GitHub Repository**: [IntMeGroup/EditHF](https://github.com/IntMeGroup/EditHF)
## Citation
If you find this model useful in your research, please cite the following paper:
```bibtex
@article{edithf1m,
title={EditHF-1M: A Million-Scale Rich Human Preference Feedback for Image Editing},
author={Luo, Junyu and others},
journal={arXiv preprint arXiv:2603.14916},
year={2026}
}
``` |