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:
- Layer Aggregation (Pyramid): Features are extracted from VGG-19 layers
conv1_1throughconv4_1. These are fused via bilinear resizing and concatenation into a single multi-scale representation, capturing both semantic information and spatial detail. - Content Module: Maintains the structural integrity of the original image using a standard content loss.
- 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).
- 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.
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.
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