GLStyleNet: Higher Quality Style Transfer Combining Global and Local Pyramid Features

Zhizhong Wang, Lei Zhao, Wei Xing, Dongming LuarXiv 2018 · OpenReview

Abstract

GLStyleNet is a novel feature pyramid fusion network that combines global feature correlations with local patch-matching to achieve high-quality style transfer. By aggregating multi-scale layers from a VGG network, it captures both intricate textures and global structures, outperforming previous state-of-the-art methods in tasks ranging from portrait stylization to the delicate nuances of ancient Chinese paintings.

Introduction

Neural style transfer has traditionally evolved into two distinct paradigms. Global methods utilize Gram matrices to capture statistical style distributions, excelling at abstract patterns but often failing to maintain correct texture scales or fine details. Conversely, local methods employ patch-matching techniques (e.g., Markov Random Fields) to swap local textures, preserving detail but frequently sacrificing global coherence, leading to artifacts or structural distortions.

This paper addresses these limitations by introducing GLStyleNet, specifically targeting "stress tests" like ancient Chinese paintings, which require a harmonious balance of large-scale color washes and extremely fine line art.

Methodology

The GLStyleNet architecture consists of four integrated modules:

  1. Layer Aggregation (Pyramid): Features are extracted from VGG-19 layers conv1_1 through conv4_1. These are fused via bilinear resizing and concatenation into a single multi-scale representation, capturing both semantic information and spatial detail.
  2. Content Module: Maintains the structural integrity of the original image using a standard content loss.
  3. Local Style Module: Performs patch-matching on the fused pyramid features, utilizing semantic maps to ensure style is transferred between contextually appropriate regions (e.g., face-to-face).
  4. Global Style Module: Computes Gram matrices on the fused features to ensure overall color and stylistic consistency.

The optimization process uses the L-BFGS algorithm, with a weight parameter ($\gamma$) allowing users to tune the balance between global abstraction and local texture fineness.

Experimental Results

GLStyleNet demonstrates significant qualitative improvements over existing methods. In portrait stylization, the model preserves sharp facial features (eyes, nose, ears) where previous patch-based methods produced blurriness.

Comparison of portrait stylization methods showing GLStyleNet's superior detail preservation.

Furthermore, the model excels at transferring the specific "blue-green" aesthetic of Song Dynasty paintings onto Yuan Dynasty landscapes. It maintains the intricate line-work of trees and architecture while adopting the global color palette of the style image.

Comparison of landscape stylization on ancient Chinese paintings.

Quantitatively, the optimized layer aggregation scheme is approximately 25% faster per iteration than comparable patch-based methods like Champandard [7], despite the increased complexity of the feature pyramid.

Conclusion and Future Work

GLStyleNet successfully bridges the gap between global and local style transfer. While the current optimization-based approach takes roughly 90 seconds per image, future work aims to adapt this pyramid fusion architecture into a feed-forward network for real-time applications. Additionally, automating the selection of style weights remains an area for further exploration.

Summary updated

Abstract

Recent studies using deep neural networks have shown remarkable success in style transfer especially for artistic and photo-realistic images. However, the approaches using global feature correlations fail to capture small, intricate textures and maintain correct texture scales of the artworks, and the approaches based on local patches are defective on global effect. In this paper, we present a novel feature pyramid fusion neural network, dubbed GLStyleNet, which sufficiently takes into consideration multi-scale and multi-level pyramid features by best aggregating layers across a VGG network, and performs style transfer hierarchically with multiple losses of different scales. Our proposed method retains high-frequency pixel information and low frequency construct information of images from two aspects: loss function constraint and feature fusion. Our approach is not only flexible to adjust the trade-off between content and style, but also controllable between global and local. Compared to state-of-the-art methods, our method can transfer not just large-scale, obvious style cues but also subtle, exquisite ones, and dramatically improves the quality of style transfer. We demonstrate the effectiveness of our approach on portrait style transfer, artistic style transfer, photo-realistic style transfer and Chinese ancient painting style transfer tasks. Experimental results indicate that our unified approach improves image style transfer quality over previous state-of-the-art methods, while also accelerating the whole process in a certain extent. Our code is available at https://github.com/EndyWon/GLStyleNet.
BibTeX
@misc{wang2018glstylenet,
  author = {Zhizhong Wang and Lei Zhao and Wei Xing and Dongming Lu},
  title = {{GLStyleNet: Higher Quality Style Transfer Combining Global and Local Pyramid Features}},
  year = {2018},
  eprint = {1811.07260},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.07260},
}
Figure