SAFIN: Arbitrary Style Transfer With Self-Attentive Factorized Instance Normalization

Aaditya Singh, Shreeshail Hingane, Xinyu Gong, Zhangyang Wang
5/13/2021
cs.CVcs.AIcs.LG
transformer-attention

Official code: Aaditya-Singh/SAFIN (34 stars, Python, PyTorch, last commit 2024-01-15).

Abstract

Artistic style transfer aims to transfer the style characteristics of one image onto another image while retaining its content. Existing approaches commonly leverage various normalization techniques, although these face limitations in adequately transferring diverse textures to different spatial locations.

Show full abstract

Self-Attention-based approaches have tackled this issue with partial success but suffer from unwanted artifacts. Motivated by these observations, this paper aims to combine the best of both worlds: self-attention and normalization. That yields a new plug-and-play module that we name Self-Attentive Factorized Instance Normalization (SAFIN). SAFIN is essentially a spatially adaptive normalization module whose parameters are inferred through attention on the content and style image. We demonstrate that plugging SAFIN into the base network of another state-of-the-art method results in enhanced stylization. We also develop a novel base network composed of Wavelet Transform for multi-scale style transfer, which when combined with SAFIN, produces visually appealing results with lesser unwanted textures.

View on arXivView PDF

Code Implementations(1)

PyTorch

Code for the ICME 2021 paper "SAFIN: Arbitrary Style Transfer With Self-Attentive Factorized Instance Normalization"

348PythonMar 10, 20212 years ago
computer-visiondeep-learningneural-style-transferpytorch

Similar Papers

Cite this paper

@article{singh2021safin,
  title  = {SAFIN: Arbitrary Style Transfer With Self-Attentive Factorized Instance Normalization},
  author = {Aaditya Singh and Shreeshail Hingane and Xinyu Gong and Zhangyang Wang},
  year   = {2021},
  eprint = {2105.06129},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.06129}
}

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/2105.06129.svg)](https://codeofpaper.com/paper/2105.06129)

Discussion