kmittle/RepLDM
Sobre
[NeurIPS2025 spotlight★] Official implementation for "RepLDM: Reprogramming Pretrained Latent Diffusion Models for High-Quality, High-Efficiency, High-Resolution Image Generation".
Design e mídiaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +1
- em 15 dias
- +1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalRepLDM: Reprogramming Pretrained Latent Diffusion Models for High-Quality, High-Efficiency, High-Resolution Image Generation
NeurIPS2025 Spotlight ★
🔥🔥🔥 RepLDM is a training-free method for higher-resolution image generation, enabling the 8k image generation! You can freely adjust the richness of colors and details in the generated image through attention guidance.
📝 TODO List
- SDXL Based
- Text to Image
- [ √ ] RepLDM
- [ √ ] FreeScale + AttentionGuidance
- +ControlNet
- [ √ ] RepLDM
- [___] FreeScale + AttentionGuidance
- Text to Image
- FLUX Based
- Text to Image
- [___] RepLDM
- Text to Image
- SD3 Based
- Text to Image
- [___] RepLDM
- Text to Image
- [___] Web UI
⚙️ Setup
Install Environment
conda create -n repldm python=3.9
conda activate repldm
pip install -e .
🚀 Quik Start
Quick start with Gradio
TODO
Text to image generation
TODO
📖 Overview of RepLDM
RepLDM enables the rapid synthesis of high-quality, high-resolution images without the need for further training.
It consists of two stages:
- Synthesizing high-quality images at the training resolution using Attention Guidance.
- Generating finer high-resolution images through pixel upsampling and "diffusion-denoising" loop.
Attention Guidance enables the generation of images with more vivid colors and richer details, as shown in the figure below.
Attention Guidance can be used in conjunction with plugins such as ControlNet to achieve an enhanced visual experience, as illustrated in the figure below.
Attention Guidance allows users to freely adjust the level of detail and color richness in an image according to their preferences, simply by modifying the attention guidance scale, as shown in the figure below.
How does attention guidance work?
Attention Guidance computes layout-enhanced representations using a training-free self-attention (TFSA) mechanism and leverages them to strengthen layout consistency:
$\tilde{\boldsymbol{z}} = \gamma\mathrm{TFSA}(\boldsymbol{z})+(1-\gamma) \boldsymbol{z}, \quad \mathrm{TFSA}(\boldsymbol{z}) = \mathrm{f}^{-1}\left(\mathrm{Softmax}\left(\frac{\mathrm{f}(\boldsymbol{z}) \mathrm{f}(\boldsymbol{z})^{\mathrm{T}}}{\lambda}\right) \mathrm{f}(\boldsymbol{z})\right),$
where $\boldsymbol{z}$ is the latent representation, $\mathrm{f}$ denotes reshape operation, and 𝛾 and 𝜆 are hyperparameters. Specifically, Attention Guidance leads each denoising step closer to the final state, as illustrated in the figure below.
🔬 On Research Comparison
The implementation in the main branch includes some modifications based on the original version. If you want to compare with the original method reported in the paper, please refer to the code in the base branch.
😉 Citation
@inproceedings{caorepldm,
title={RepLDM: Reprogramming Pretrained Latent Diffusion Models for High-Quality, High-Efficiency, High-Resolution Image Generation},
author={Cao, Boyuan and Ye, Jiaxin and Wei, Yujie and Shan, Hongming},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems}
}
Explore projetos relacionados
Carregando…
