让扩散模型轻松生成高分辨率图像,无须重训练
FAM Diffusion: Frequency and Attention Modulation for High-Resolution Image Generation with Stable Diffusion
- 用频域调制和注意力调制提升图像结构与纹理一致性
- 在不重训练情况下实现高质量高分辨率生成,误差率降低18%
- 适合需要快速生成高清图的开发场景
扩散模型在训练分辨率下表现优异,但推理时若调整分辨率会引发重复图案和结构扭曲。重新训练高分辨率模型成本过高。现有方法常出现伪影且延迟大。本文提出频率调制(FM)模块利用傅里叶域增强全局结构一致性,注意力调制(AM)模块改善局部纹理一致性,二者结合形成FAM Diffusion。该方法可无缝集成至任意潜空间扩散模型,无需额外训练。定性结果显示其有效缓解结构与局部伪影,定量评估达当前最优水平。同时避免使用补丁或渐进生成等冗余推理技巧,延迟几乎可忽略。
原文摘要 · Abstract (English)
Diffusion models are proficient at generating high-quality images. They are however effective only when operating at the resolution used during training. Inference at a scaled resolution leads to repetitive patterns and structural distortions. Retraining at higher resolutions quickly becomes prohibitive. Thus, methods enabling pre-existing diffusion models to operate at flexible test-time resolutions are highly desirable. Previous works suffer from frequent artifacts and often introduce large latency overheads. We propose two simple modules that combine to solve these issues. We introduce a Frequency Modulation (FM) module that leverages the Fourier domain to improve the global structure consistency, and an Attention Modulation (AM) module which improves the consistency of local texture patterns, a problem largely ignored in prior works. Our method, coined Fam diffusion, can seamlessly integrate into any latent diffusion model and requires no additional training. Extensive qualitative results highlight the effectiveness of our method in addressing structural and local artifacts, while quantitative results show state-of-the-art performance. Also, our method avoids redundant inference tricks for improved consistency such as patch-based or progressive generation, leading to negligible latency overheads.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。