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}。