X-GenGroup/PaCo-RL
X-GenGroup/PaCo-RL has 43 GitHub stars and 0 forks. GitHot measured 0 in 7 days. Last checked 2026-11-10 22:24 UTC. Last push 2025-12-13.
Official Implementation for *PaCo-RL: Advancing Reinforcement Learning for Consistent Image Generation with Pairwise Reward Modeling*
Measured star growth
- in 24h
- Update delayed
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalPaCo-RL
Advancing Reinforcement Learning for Consistent Image Generation with Pairwise Reward Modeling
🌟 Overview
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.
Key Components
- PaCo-Reward: A pairwise consistency evaluator with task-aware instruction and CoT reasoning.
- PaCo-GRPO: Efficient RL optimization with resolution-decoupled training and log-tamed multi-reward aggregation
🚀 Quick Start
Installation
git clone https://github.com/X-GenGroup/PaCo-RL.git
cd PaCo-RL
Train Reward Model
cd PaCo-Reward
conda create -n paco-reward python=3.12 -y
conda activate paco-reward
cd LLaMA-Factory && pip install -e ".[torch,metrics]" --no-build-isolation
cd .. && bash train/paco_reward.sh
See 📖 PaCo-Reward Documentation for detailed guide.
Run RL Training
cd PaCo-GRPO
conda create -n paco-grpo python=3.12 -y
conda activate paco-grpo
pip install -e .
# Setup vLLM reward server
conda create -n vllm python=3.12 -y
conda activate vllm && pip install vllm
export CUDA_VISIBLE_DEVICES=0
export VLLM_MODEL_PATHS='X-GenGroup/PaCo-Reward-7B'
export VLLM_MODEL_NAMES='Paco-Reward-7B'
bash vllm_server/launch.sh
# Start training
export CUDA_VISIBLE_DEVICES=1,2,3,4,5,6,7
conda activate paco-grpo
bash scripts/single_node/train_flux.sh t2is
See 📖 PaCo-GRPO Documentation for detailed guide.
📁 Repository Structure
PaCo-RL/
├── PaCo-GRPO/ # RL training framework
│ ├── config/ # RL configurations
│ ├── scripts/ # Training scripts
│ └── README.md
├── PaCo-Reward/ # Reward model training
│ ├── LLaMA-Factory/ # Training framework
│ ├── config/ # Training configurations
│ └── README.md
└── README.md
🎁 Model Zoo
| 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 |
🤗 Acknowledgement
Our work is built upon Flow-GRPO, LLaMA-Factory, vLLM, and Qwen2.5-VL. We sincerely thank the authors for their valuable contributions to the community.
⭐ Citation
@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},
}
📬 Contact
If you have any inquiries, suggestions, or wish to contact us for any reason, we warmly invite you to email us at [email protected] or [email protected].
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,527 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,942 starsmrdoob/three.js
JavaScript 3D Library.
117,983 stars