A Closed-Form Solution to Universal Style Transfer
Ming Lu, Hao Zhao, Anbang Yao, Yurong Chen, Feng Xu, Li Zhang
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 . * This work was done when Ming Lu was an intern at Intel Labs China, supervised by Anbang Yao who is responsible for correspondence.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers30
- StyTr2: Image Style Transfer with TransformersYingying Deng, Fan Tang, Weiming Dong, Chongyang Ma et al.CVPR 2022 · 345 citations
- Artistic Style Transfer with Internal-external Learning and Contrastive LearningHaibo Chen, Lei Zhao, Zhizhong Wang, Huiming Zhang et al.NeurIPS 2021 · 243 citations
- Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain GeneralizationYabin Zhang, Minghan Li, Ruihuang Li, Kui Jia et al.CVPR 2022 · 217 citations
- StyleFormer: Real-time Arbitrary Style Transfer via Parametric Style CompositionXiaolei Wu, Zhihao Hu, Lu Sheng, Dong XuICCV 2021 · 130 citations
- Training-free Diffusion Model Adaptation for Variable-Sized Text-to-Image SynthesisZhiyu Jin, Xuli Shen, Bin Li, Xiangyang XueNeurIPS 2023 · 72 citations
Related papers
- EFANet: Exchangeable Feature Alignment Network for Arbitrary Style TransferZhijie Wu, Chunjin Song, Yang Zhou, Minglun Gong et al.AAAI 2020 · 33 citations
- Unbalanced Feature Transport for Exemplar-Based Image TranslationFangneng Zhan, Yingchen Yu, Kaiwen Cui, Gongjie Zhang et al.CVPR 2021
- Understanding Generalized Whitening and Coloring Transform for Universal Style TransferTai-Yin ChiuICCV 2019 · 32 citations
- ArtFlow: Unbiased Image Style Transfer via Reversible Neural FlowsJie An, Siyu Huang, Yibing Song, Dejing Dou et al.CVPR 2021
- Aesthetic-Aware Image Style TransferZhiyuan Hu, Jia Jia, Bei Liu, Yaohua Bu et al.ACM MM 2020 · 39 citations
