Abstract
Photorealistic style transfer aims to apply the aesthetic of a reference style image to a content image while preserving the structural integrity and realism of the original scene. Previous methods often suffer from high computational costs or visual artifacts like halos and distortions. This paper introduces a novel architecture that predicts local affine transformations within a bilateral grid. This approach is three orders of magnitude faster than existing state-of-the-art techniques, enabling real-time 4K processing on mobile devices while inherently enforcing a photorealism constraint.
Introduction
Style transfer is generally divided into artistic and photorealistic categories. While artistic transfer allows for significant geometric and textural changes, photorealistic transfer must strictly maintain the "look" of a real photograph—preserving edges and avoiding the "painterly" artifacts common in neural style transfer. The primary challenges are maintaining this photorealism constraint and achieving the efficiency required for high-resolution (12MP or 4K) mobile applications.
Proposed Method: Joint Bilateral Learning
The authors propose a "Joint Bilateral Learning" framework that decouples the complexity of the transformation from the image resolution. The architecture consists of two distinct streams:
1. Coefficient Prediction Stream (Low-Resolution)
This stream operates on a downsampled version of the input. It utilizes Style-based Splatting blocks to extract features from both content and style images. The output is a compact 3D bilateral grid ($x, y, \text{intensity}$), where each cell contains a $3 \times 4$ affine transformation matrix.
2. Rendering Stream (Full-Resolution)
The rendering stream is a lightweight operation applied to the full-resolution content image. For each pixel, the model "slices" the bilateral grid based on the pixel's coordinates and intensity to retrieve a localized affine matrix. This matrix is then applied to the pixel's color values.
To ensure spatial and intensity smoothness, the authors introduce a bilateral-space Laplacian regularizer. This loss function prevents abrupt changes between neighboring cells in the grid, effectively eliminating spatial artifacts.
Key Results and Evaluation
The proposed method achieves a speedup of approximately 1,000x over previous benchmarks like WCT2. It can process 12-megapixel images at over 30 FPS on modern smartphones.
In user studies involving 20 participants and 1,200 comparisons, the method outperformed baselines in "Stylization" and "Overall Quality." It provides photorealistic results comparable to the best existing methods but at a fraction of the computational cost.
Discussion and Conclusion
By architecturally restricting the network to local affine transforms, the model is "photorealistic by design." The use of bilateral space allows for edge-aware processing, enabling different transformations for distinct image regions (e.g., sky vs. foreground) even when they are spatially adjacent.
While the model shows some contrast reduction along very strong edges and lacks explicit semantic awareness, its efficiency and quality represent a significant leap forward for on-device image processing. Future work may explore relaxing the photorealism constraint to allow for a controllable blend between realistic and artistic styles.
Summary updated