A Closed-form Solution to Universal Style Transfer

Ming Lu, Hao Zhao, Anbang Yao, Yurong Chen, Feng Xu +1 more
6/3/2019
cs.CVeess.IV

Official code: lu-m13/OptimalStyleTransfer (33 stars, last commit 2019-12-02).

Abstract

Universal style transfer tries to explicitly minimize the losses in feature space, thus it does not require training on any pre-defined styles. It usually uses different layers of VGG network as the encoders and trains several decoders to invert the features into images. Therefore, the effect of style transfer is achieved by feature transform. Although plenty of methods have been proposed, a theoretical analysis of feature transform is still missing. In this paper, we first propose a novel interpretation by treating it as the optimal transport problem. Then, we demonstrate the relations of our formulation with former works like Adaptive Instance Normalization (AdaIN) and Whitening and Coloring Transform (WCT). Finally, we derive a closed-form solution named Optimal Style Transfer (OST) under our formulation by additionally considering the content loss of Gatys. Comparatively, our solution can preserve better structure and achieve visually pleasing results. It is simple yet effective and we demonstrate its advantages both quantitatively and qualitatively. Besides, we hope our theoretical analysis can inspire future works in neural style transfer. Code is available at https://github.com/lu-m13/OptimalStyleTransfer.

View on arXivView PDF

Code Implementations(1)

A Closed-form Solution to Universal Style Transfer - ICCV 2019

339Lua, ShellJun 15, 20196 years ago

Similar Papers

Cite this paper

@article{lu2019closedform,
  title  = {A Closed-form Solution to Universal Style Transfer},
  author = {Ming Lu and Hao Zhao and Anbang Yao and Yurong Chen and Feng Xu and Li Zhang},
  year   = {2019},
  eprint = {1906.00668},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.00668}
}

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

Discussion