Downloads · 30 days
16
6% of all-time downloads
X-GenGroup/PaCo-FLUX.1-Kontext-Lora
PaCo-FLUX.1-Kontext-Lora is a text-to-image model from X-GenGroup. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
<div align="center" <a href='https://arxiv.org/abs/2512.04784'<img src='https://img.shields.io/badge/ArXiv-red?logo=arxiv'</a <a href='https://x-gengroup.github.io/HomePagePaCo-RL/'<img src='https://img.shields…
Downloads · 30 days
16
6% of all-time downloads
All-time downloads
253
Public
Repo size
359 MB
Likes
0
Public
Click a slice to open those files.
.safetensors359 MB · 100%
From the Hugging Face model README
The model presented in PaCo-RL: Advancing Reinforcement Learning for Consistent Image Generation with Pairwise Reward Modeling.
PaCo-RL is a comprehensive framework for consistent image generation through reinforcement learning, addressing challenges in preserving identities, styles, and logical coherence across multiple images for storytelling and character design applications.
import torch
from diffusers import FluxKontextPipeline
from peft import PeftModel
from diffusers.utils import load_image
pipe = FluxKontextPipeline.from_pretrained(
"black-forest-labs/FLUX.1-Kontext-dev",
torch_dtype=torch.bfloat16,
device_map="cuda"
)
pipe.transformer = PeftModel.from_pretrained(
pipe.transformer,
'X-GenGroup/PaCo-FLUX.1-Kontext-Lora'
)
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
image = pipe(
image=input_image,
prompt="Add a blue hat to the cat",
guidance_scale=2.5
).images[0]
| Model | Type | HuggingFace |
|---|---|---|
| PaCo-Reward-7B | Reward Model | 🤗 Link |
| PaCo-Reward-7B-Lora | Reward Model (LoRA) | 🤗 Link |
| PaCo-FLUX.1-dev | T2I Model (LoRA) | 🤗 Link |
| PaCo-FLUX.1-Kontext-dev | Image Editing Model (LoRA) | 🤗 Link |
| PaCo-QwenImage-Edit | Image Editing Model (LoRA) | 🤗 Link |
@misc{ping2025pacorladvancingreinforcementlearning,
title={PaCo-RL: Advancing Reinforcement Learning for Consistent Image Generation with Pairwise Reward Modeling},
author={Bowen Ping and Chengyou Jia and Minnan Luo and Changliang Xia and Xin Shen and Zhuohang Dang and Hangwei Qian},
year={2025},
eprint={2512.04784},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2512.04784},
}
<div align="center">
<sub>⭐ Star us on GitHub if you find PaCo-RL helpful!</sub>
</div>