Skip to content
프로젝트

소개

[NeurIPS2025 spotlight★] Official implementation for "RepLDM: Reprogramming Pretrained Latent Diffusion Models for High-Quality, High-Efficiency, High-Resolution Image Generation".

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+2
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

RepLDM: 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.

arXiv Paper                 


Boyuan Cao, Jiaxin Ye, Yujie Wei, and Hongming Shan*
(* Corresponding Author)
From Fudan University

📝 TODO List

  • SDXL Based
    • Text to Image
      • [ √ ] RepLDM
      • [ √ ] FreeScale + AttentionGuidance
    • +ControlNet
      • [ √ ] RepLDM
      • [___] FreeScale + AttentionGuidance
  • FLUX Based
    • Text to Image
      • [___] RepLDM
  • SD3 Based
    • Text to Image
      • [___] RepLDM
  • [___] 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:

  1. Synthesizing high-quality images at the training resolution using Attention Guidance.
  2. 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}
}

관련 프로젝트 살펴보기

불러오는 중…