SpectralCLIP:从频谱视角防止文本引导风格迁移中的伪影
SpectralCLIP: Preventing Artifacts in Text-Guided Style Transfer from a Spectral Perspective
AI总结:
针对CLIP引导文本风格迁移易产生文字、无关实体等伪影的问题,提出基于CLIP嵌入频谱表示的SpectralCLIP方法,通过掩码伪影对应频段抑制伪影,同时保障风格化质量,还可用于文本生成图像的文字抑制。
摘要:
得益于CLIP等视觉语言基础模型的强大能力,图像合成领域近年来取得了重要进展。尤其在风格迁移任务中,CLIP无需提前收集风格图像即可实现更通用、更抽象的风格迁移——因为风格可通过自然语言高效描述,且结果通过最小化文本描述与风格化图像之间的CLIP相似度来优化。然而,直接使用CLIP引导风格迁移会导致图像上出现散布的不良伪影(主要是文字和无关视觉实体)。本文提出SpectralCLIP,该方法基于CLIP嵌入序列的频谱表示,其中大多数常见伪影占据特定频率。通过对包含这些频率的频段进行掩码,我们能够约束生成过程遵循目标风格属性(如颜色、纹理、笔触等),同时排除生成与伪影对应的更大尺度结构。实验结果表明,SpectralCLIP在定量和定性层面均有效抑制了伪影生成,且未损害风格化质量。我们还将SpectralCLIP应用于文本条件图像生成,证明其能防止生成图像中出现文字。代码已开源至https://github.com/zipengxuc/SpectralCLIP。
英文摘要:
Owing to the power of vision-language foundation models, e.g., CLIP, the area of image synthesis has seen recent important advances. Particularly, for style transfer, CLIP enables transferring more general and abstract styles without collecting the style images in advance, as the style can be efficiently described with natural language, and the result is optimized by minimizing the CLIP similarity between the text description and the stylized image. However, directly using CLIP to guide style transfer leads to undesirable artifacts (mainly written words and unrelated visual entities) spread over the image. In this paper, we propose SpectralCLIP, which is based on a spectral representation of the CLIP embedding sequence, where most of the common artifacts occupy specific frequencies. By masking the band including these frequencies, we can condition the generation process to adhere to the target style properties (e.g., color, texture, paint stroke, etc.) while excluding the generation of larger-scale structures corresponding to the artifacts. Experimental results show that SpectralCLIP prevents the generation of artifacts effectively in quantitative and qualitative terms, without impairing the stylisation quality. We also apply SpectralCLIP to text-conditioned image generation and show that it prevents written words in the generated images. Our code is available at https://github.com/zipengxuc/SpectralCLIP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。