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

通过缓存启用的稀疏扩散推理加速文本到图像编辑

Accelerating Text-to-Image Editing via Cache-Enabled Sparse Diffusion Inference

Peking University(北京大学);Carnegie Mellon University(卡内基梅隆大学)

Zihao Yu, Haoyang Li, Fangcheng Fu, Xupeng Miao, Bin Cui

AI总结:

为解决文本到图像编辑中扩散模型推理效率低的问题,提出缓存启用的稀疏扩散推理引擎FISEdit,利用文本修改与图像受影响区域的语义映射加速推理,在TITAN RTX和A100上分别提速3.4倍和4.4倍。

摘要:

由于扩散模型的近期成功,文本到图像生成正变得日益流行,并实现了广泛的应用。其中,文本到图像编辑,或连续的文本到图像生成,吸引了大量关注,并有可能提高生成图像的质量。用户经常希望通过几轮扩散推理对输入文本描述进行微小修改,从而对生成的图像进行轻微编辑。然而,即使使用 GPU 加速器,这种图像编辑过程也受到许多现有扩散模型低推理效率的困扰。为了解决这个问题,我们引入了 Fast Image Semantically Edit (FISEdit),这是一个用于高效文本到图像编辑的缓存启用稀疏扩散模型推理引擎。我们方法背后的关键直觉是利用输入文本上的微小修改与输出图像上受影响区域之间的语义映射。对于每个文本编辑步骤,FISEdit 可以自动识别受影响的图像区域,并利用缓存的不变区域的特征图来加速推理过程。大量实证结果表明,FISEdit 在 NVIDIA TITAN RTX 和 A100 GPU 上分别比现有方法快 3.4 倍和 4.4 倍,甚至能生成更令人满意的图像。

英文摘要:

Due to the recent success of diffusion models, text-to-image generation is becoming increasingly popular and achieves a wide range of applications. Among them, text-to-image editing, or continuous text-to-image generation, attracts lots of attention and can potentially improve the quality of generated images. It's common to see that users may want to slightly edit the generated image by making minor modifications to their input textual descriptions for several rounds of diffusion inference. However, such an image editing process suffers from the low inference efficiency of many existing diffusion models even using GPU accelerators. To solve this problem, we introduce Fast Image Semantically Edit (FISEdit), a cached-enabled sparse diffusion model inference engine for efficient text-to-image editing. The key intuition behind our approach is to utilize the semantic mapping between the minor modifications on the input text and the affected regions on the output image. For each text editing step, FISEdit can automatically identify the affected image regions and utilize the cached unchanged regions' feature map to accelerate the inference process. Extensive empirical results show that FISEdit can be $3.4\times$ and $4.4\times$ faster than existing methods on NVIDIA TITAN RTX and A100 GPUs respectively, and even generates more satisfactory images.

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

↑