arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.18410cs.CV
收藏

FreCaS:通过频率感知级联采样实现高效更高分辨率图像生成

FreCaS: Efficient Higher-Resolution Image Generation via Frequency-aware Cascaded Sampling

The Hong Kong Polytechnic University(香港理工大学);OPPO Research Institute(OPPO研究院)

Zhengqiang Zhang, Ruihuang Li, Lei Zhang

AI总结:

FreCaS提出频率感知级联采样框架,通过分阶段扩展频带和频率感知引导,高效生成高分辨率图像,显著提升速度和质量。

摘要:

虽然基于扩散模型的图像生成已经取得了巨大成功,但由于计算成本高昂,生成比训练尺寸更高分辨率的图像仍然是一项具有挑战性的任务。当前方法通常在全分辨率下执行整个采样过程,并同时处理所有频率分量,这与潜在扩散模型固有的从粗到细的特性相矛盾,并且在早期扩散阶段浪费计算来处理过早的高频细节。为了解决这个问题,我们引入了一个高效的频率感知级联采样框架,简称FreCaS,用于更高分辨率的图像生成。FreCaS将采样过程分解为分辨率逐渐增加的级联阶段,逐步扩展频带并细化相应的细节。我们提出了一种创新的频率感知无分类器引导(FA-CFG)策略,为不同的频率分量分配不同的引导强度,引导扩散模型在每个阶段的扩展频域中添加新细节。此外,我们融合了前一个和当前阶段的交叉注意力图,以避免合成不忠实的布局。实验表明,FreCaS在图像质量和生成速度上显著优于最先进的方法。特别是,在使用预训练的SDXL模型生成2048×2048图像时,FreCaS比ScaleCrafter和DemoFusion分别快约2.86倍和6.07倍,并且FID_b分别提高了11.6和3.7。FreCaS可以轻松扩展到更复杂的模型,如SD3。FreCaS的源代码可以在https://github.com/xtudbxk/FreCaS找到。

英文摘要:

While image generation with diffusion models has achieved a great success, generating images of higher resolution than the training size remains a challenging task due to the high computational cost. Current methods typically perform the entire sampling process at full resolution and process all frequency components simultaneously, contradicting with the inherent coarse-to-fine nature of latent diffusion models and wasting computations on processing premature high-frequency details at early diffusion stages. To address this issue, we introduce an efficient $\textbf{Fre}$quency-aware $\textbf{Ca}$scaded $\textbf{S}$ampling framework, $\textbf{FreCaS}$ in short, for higher-resolution image generation. FreCaS decomposes the sampling process into cascaded stages with gradually increased resolutions, progressively expanding frequency bands and refining the corresponding details. We propose an innovative frequency-aware classifier-free guidance (FA-CFG) strategy to assign different guidance strengths for different frequency components, directing the diffusion model to add new details in the expanded frequency domain of each stage. Additionally, we fuse the cross-attention maps of previous and current stages to avoid synthesizing unfaithful layouts. Experiments demonstrate that FreCaS significantly outperforms state-of-the-art methods in image quality and generation speed. In particular, FreCaS is about 2.86$\times$ and 6.07$\times$ faster than ScaleCrafter and DemoFusion in generating a 2048$\times$2048 image using a pre-trained SDXL model and achieves an FID$_b$ improvement of 11.6 and 3.7, respectively. FreCaS can be easily extended to more complex models such as SD3. The source code of FreCaS can be found at https://github.com/xtudbxk/FreCaS.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑