Diffusion model based language-guided image editing has achieved great success recently. However, existing state-of-the-art diffusion models struggle with rendering correct text and text style during generation. To tackle this problem, we propose a universal self-supervised text editing diffusion model (DiffUTE), which aims to replace or modify words in the source image with another one while maintaining its realistic appearance. Specifically, we build our model on a diffusion model and carefully modify the network structure to enable the model for drawing multilingual characters with the help of glyph and position information. Moreover, we design a self-supervised learning framework to leverage large amounts of web data to improve the representation ability of the model. Experimental results show that our method achieves an impressive performance and enables controllable editing on in-the-wild images with high fidelity. Our code will be avaliable in \url{https://github.com/chenhaoxing/DiffUTE}.
翻译:基于扩散模型的语言引导图像编辑近期取得了巨大成功。然而,现有最先进的扩散模型在生成过程中难以正确渲染文本内容及其风格。为解决这一问题,我们提出了一种通用的自监督文本编辑扩散模型(DiffUTE),旨在替换或修改源图像中的词语,同时保持其真实外观。具体而言,我们在扩散模型基础上构建模型,并精细修改网络结构,使其能够借助字形和位置信息绘制多语言字符。此外,我们设计了一种自监督学习框架,利用大量网络数据提升模型的表示能力。实验结果表明,我们的方法取得了令人瞩目的性能,能够对自然场景图像进行高保真度的可控编辑。代码将于 \url{https://github.com/chenhaoxing/DiffUTE} 提供。