arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.20484cs.CVcs.AI
收藏

对比学习引导的潜在扩散模型用于图像到图像翻译

Contrastive Learning Guided Latent Diffusion Model for Image-to-Image Translation

School of Computer Science and Information Engineering, Hefei University of Technology(合肥工业大学计算机与信息工程学院);Yunnan Key Laboratory of Software Engineering(云南省软件工程重点实验室);School of Computer Science and Engineering, Donghua University(东华大学计算机科学与技术学院);ByteDance(字节跳动);School of Computer and Artificial Intelligence, Zhengzhou University(郑州大学计算机与人工智能学院)

Qi Si, Bo Wang, Zhao Zhang

AI总结:

提出pix2pix-zeroCon零样本扩散方法,利用补丁级对比损失自动确定编辑方向并保留内容结构,无需额外训练,在图像到图像翻译中实现更高保真度和可控性。

摘要:

扩散模型在文本引导的图像翻译中展现出生成多样且高质量图像的卓越性能。然而,在文本提示的表述和参考图像内容的保留方面仍有改进空间。首先,目标文本提示的变化会显著影响生成图像的质量,用户通常难以设计出完全捕捉输入图像内容的最优提示。其次,现有模型虽然能对参考图像的特定区域进行期望的修改,但常常在应保持不变的区域引入非预期的改变。为解决这些挑战,我们提出了pix2pix-zeroCon,一种基于零样本扩散的方法,通过利用补丁级对比损失消除了额外训练的需求。具体而言,我们根据参考图像和目标提示自动确定文本嵌入空间中的编辑方向。此外,为确保编辑图像中内容和结构的精确保留,我们在预训练扩散模型内引入了生成图像与原始图像嵌入之间的交叉注意力引导损失和补丁级对比损失。值得注意的是,我们的方法无需额外训练,直接作用于预训练的文本到图像扩散模型。大量实验表明,我们的方法在图像到图像翻译中超越了现有模型,实现了更高的保真度和可控性。

英文摘要:

The diffusion model has demonstrated superior performance in synthesizing diverse and high-quality images for text-guided image translation. However, there remains room for improvement in both the formulation of text prompts and the preservation of reference image content. First, variations in target text prompts can significantly influence the quality of the generated images, and it is often challenging for users to craft an optimal prompt that fully captures the content of the input image. Second, while existing models can introduce desired modifications to specific regions of the reference image, they frequently induce unintended alterations in areas that should remain unchanged. To address these challenges, we propose pix2pix-zeroCon, a zero-shot diffusion-based method that eliminates the need for additional training by leveraging patch-wise contrastive loss. Specifically, we automatically determine the editing direction in the text embedding space based on the reference image and target prompts. Furthermore, to ensure precise content and structural preservation in the edited image, we introduce cross-attention guiding loss and patch-wise contrastive loss between the generated and original image embeddings within a pre-trained diffusion model. Notably, our approach requires no additional training and operates directly on a pre-trained text-to-image diffusion model. Extensive experiments demonstrate that our method surpasses existing models in image-to-image translation, achieving enhanced fidelity and controllability.

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

↑