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.

SpectralCLIP: Preventing Artifacts in Text-Guided Style Transfer From a Spectral Perspective / Xu, Zipeng; Xing, Songlong; Sangineto, Enver; Sebe, Nicu. - ELETTRONICO. - (2024), pp. 5121-5130. (Intervento presentato al convegno IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) tenutosi a Waikoloa, Hawaii, USA nel 4th January-8th January 2024).

SpectralCLIP: Preventing Artifacts in Text-Guided Style Transfer From a Spectral Perspective

Zipeng Xu
Co-primo
;
Songlong Xing
Co-primo
;
Enver Sangineto
Secondo
;
Nicu Sebe
Ultimo
2024-01-01

Abstract

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.
2024
Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)
New York City, New York
IEEE
Xu, Zipeng; Xing, Songlong; Sangineto, Enver; Sebe, Nicu
SpectralCLIP: Preventing Artifacts in Text-Guided Style Transfer From a Spectral Perspective / Xu, Zipeng; Xing, Songlong; Sangineto, Enver; Sebe, Nicu. - ELETTRONICO. - (2024), pp. 5121-5130. (Intervento presentato al convegno IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) tenutosi a Waikoloa, Hawaii, USA nel 4th January-8th January 2024).
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11572/399937
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact