#134 · Primary category: Image Generation
ddpo-pytorch
DDPO for finetuning diffusion models, implemented in PyTorch with LoRA support
Project last updated:03/22/24
GitHub Stars
776
Forks
72
Contributors
3
License
MIT
Why we included this project
Finetuning a diffusion model usually means supervised training on curated image pairs, but this project takes a different route: it applies reinforcement learning through Denoising Diffusion Policy Optimization, letting you push Stable Diffusion toward whatever objective you can score, from compressibility to aesthetics. The LoRA option keeps memory under 10GB, so a single consumer GPU is enough to experiment. The code is built around pluggable prompt and reward functions, so you can define your own scoring criteria without touching the training loop. It's research code rather than a polished library, and the default config is meant for a quick smoke test, so expect to adjust batch sizes and accumulation steps yourself. For researchers or engineers prototyping RL-based finetuning, this is a useful reference.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
stable-diffusion-webui
Stable Diffusion web UI
ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
diffusers
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
upscayl
🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.
InvokeAI
InvokeAI is a leading open-source creative engine for Stable Diffusion, offering an industry-leading web UI for generating and editing visual media.