Abstract
Artistic Neural Style Transfer (NST) faces significant challenges when scaling to ultra-high-resolution (UHR) images, primarily due to GPU memory exhaustion and the "small stroke" problem where artistic patterns become overly dense. We propose the Ultra-Resolution Style Transfer (URST) framework to address these issues. URST employs a patch-wise processing strategy combined with Thumbnail Instance Normalization (TIN), which uses global statistics from a downsampled thumbnail to ensure style consistency across patches. Additionally, a stroke perceptual loss is introduced to maintain large-scale artistic patterns. Our framework achieves a 15× reduction in memory usage, enabling the stylization of 10,000 × 10,000 pixel images on a single consumer GPU with constant memory overhead.
Introduction
The demand for high-resolution AI-generated art is increasing, yet standard NST models are limited by a "memory wall." Processing an 8K or 10K image directly requires VRAM far exceeding the capacity of typical consumer hardware. Furthermore, naive upscaling of low-resolution models leads to aesthetic degradation: brush strokes do not scale with the image size, resulting in a noisy, textured appearance rather than a painterly style. While patch-wise processing can mitigate memory issues, it often introduces "quilted" artifacts because standard Instance Normalization (IN) calculates statistics for each patch independently.
Methods
The URST framework introduces three key components to enable ultra-resolution stylization:
1. Patch-wise Pipeline
To maintain a constant memory footprint, the input image is divided into small, overlapping patches. These patches are processed individually, ensuring that the VRAM requirement depends only on the patch size rather than the total image resolution.
2. Thumbnail Instance Normalization (TIN)
TIN is the core architectural innovation of URST. Instead of normalizing a patch using its own local mean and variance, TIN calculates these statistics from a downsampled thumbnail of the entire image. By applying these global statistics to every local patch, the framework ensures that color and style remain perfectly consistent across the entire canvas, effectively eliminating boundary artifacts.
3. Stroke Perceptual Loss ($L_{sp}$)
To solve the "small stroke" problem, the authors introduce a new loss function. It compares a stylized high-resolution patch to an upsampled version of the stylized thumbnail. Since the thumbnail is small, the style transfer naturally produces "large" strokes relative to its size. This loss encourages the high-resolution network to mimic those larger, bolder patterns at the target scale.
Experimental Setup
The models were trained and evaluated using standard benchmarks:
- Content Images: MS-COCO dataset (~80,000 images).
- Style Images: WikiArt dataset (~80,000 images).
- Evaluation: High-resolution photography from Pexels.com.
- Loss Network: A VGG-19 model pre-trained on ImageNet was utilized for perceptual feature extraction.
Key Results
URST demonstrates significant improvements in both efficiency and visual quality over existing baselines.
Memory Efficiency and Scaling
As shown in Figure 1, URST decouples memory usage from input resolution. While traditional methods exhibit quadratic memory growth, URST maintains a nearly flat memory curve. It achieved a 15× reduction in GPU memory usage compared to previous state-of-the-art methods, stylizing a 10,000 × 10,000 image using less than 2GB of VRAM.
Speed and Versatility
Using URST with an AdaIN backbone, a 100-megapixel image can be stylized in approximately 15 seconds on a single Titan XP. Furthermore, URST is a plug-and-play framework that can be integrated into existing architectures like WCT or LinearWCT to grant them ultra-resolution capabilities without extensive retraining.
Conclusion
URST successfully addresses the memory and aesthetic challenges of ultra-high-resolution style transfer. By leveraging global context through Thumbnail Instance Normalization and enforcing stroke scale via a specialized loss, it enables high-quality artistic production at scales previously unreachable for consumer hardware. Future work may explore applying TIN to other low-level vision tasks such as image dehazing or super-resolution.
Summary updated