Domain Enhanced Arbitrary Image Style Transfer via Contrastive Learning

Yuxin Zhang, Fan Tang, Weiming Dong, Haibin Huang, Chongyang Ma +2 more
5/19/2022
cs.CVcs.GR
contrastive-ssl

Official code: zyxElsa/CAST_pytorch (199 stars, Python, Apache-2.0, last commit 2023-10-16).

Abstract

In this work, we tackle the challenging problem of arbitrary image style transfer using a novel style feature representation learning method. A suitable style representation, as a key component in image stylization tasks, is essential to achieve satisfactory results.

Show full abstract

Existing deep neural network based approaches achieve reasonable results with the guidance from second-order statistics such as Gram matrix of content features. However, they do not leverage sufficient style information, which results in artifacts such as local distortions and style inconsistency. To address these issues, we propose to learn style representation directly from image features instead of their second-order statistics, by analyzing the similarities and differences between multiple styles and considering the style distribution. Specifically, we present Contrastive Arbitrary Style Transfer (CAST), which is a new style representation learning and style transfer method via contrastive learning. Our framework consists of three key components, i.e., a multi-layer style projector for style code encoding, a domain enhancement module for effective learning of style distribution, and a generative network for image style transfer. We conduct qualitative and quantitative evaluations comprehensively to demonstrate that our approach achieves significantly better results compared to those obtained via state-of-the-art methods. Code and models are available at https://github.com/zyxElsa/CAST_pytorch

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of the paper “Domain Enhanced Arbitrary Image Style Transfer via Contrastive Learning”(SIGGRAPH 2022)

19924PythonMay 9, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2022domain,
  title  = {Domain Enhanced Arbitrary Image Style Transfer via Contrastive Learning},
  author = {Yuxin Zhang and Fan Tang and Weiming Dong and Haibin Huang and Chongyang Ma and Tong-Yee Lee and Changsheng Xu},
  year   = {2022},
  eprint = {2205.09542},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.09542}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.09542.svg)](https://codeofpaper.com/paper/2205.09542)

Discussion