Stroke Controllable Fast Style Transfer with Adaptive Receptive Fields

Yongcheng Jing, Yang Liu, Yezhou Yang, Zunlei Feng, Yizhou Yu, Dacheng Tao, Mingli Song

Introduction

Neural Style Transfer (NST) has transitioned from slow, iterative optimization processes to real-time Fast Style Transfer (FST) networks. Despite their speed, FST models often lack the flexibility of their predecessors. A significant limitation is the inability to control stroke size within a single model. Traditionally, stroke size is fixed by the network architecture and the scale of the style image used during training. To change stroke size, users typically had to retrain models or resize input images, which often led to quality degradation.

The StrokePyramid Architecture

The authors propose the StrokePyramid module to introduce real-time stroke size control. The core insight is that stroke size is intrinsically linked to the receptive field of the generative network. If a network's neurons cannot "see" a large enough area, they cannot coherently reproduce large-scale artistic strokes.

Continuous stroke size control: The model generates varying stroke sizes from fine to coarse using a single network by adapting receptive fields.

The StrokePyramid architecture branches into multiple "stroke branches," each utilizing different receptive field sizes (e.g., through varying filter sizes or dilated convolutions). Smaller receptive fields capture fine, local textures, while larger ones are responsible for broad, global stroke configurations.

Training and Interpolation

To ensure efficient learning, the authors employ Progressive Training, where branches are trained sequentially. This allows larger stroke branches to leverage features already learned by smaller ones. Additionally, Incremental Training allows new stroke sizes to be added to a pre-trained model by simply appending a new branch, avoiding full retraining.

At runtime, the model achieves smooth, continuous transitions between stroke sizes by interpolating between branch features in the embedding space. This approach produces more perceptually pleasing results than simple pixel-level blending.

Spatial Control and Performance

One of the most innovative features of this method is spatial stroke control. By applying masks to different branches during a single forward pass, users can apply fine strokes to a subject and coarse strokes to the background in one image.

The resulting model is remarkably efficient:

  • Size: Approximately 0.99 MB, significantly smaller than competing multi-stroke architectures.
  • Speed: Stylizes a 1024x1024 image in ~0.09 seconds on a modern GPU.
  • Quality: Outperforms arbitrary style models by preserving finer details and maintaining consistent stroke textures across different scales.

Conclusion

By explicitly linking receptive fields to stroke sizes, the StrokePyramid architecture provides a flexible, real-time solution for artistic style transfer. It bridges the gap between the speed of FST and the granular control required for sophisticated artistic expression.

Summary updated

BibTeX
@inproceedings{jing2018stroke,
  author = {Yongcheng Jing and Yang Liu and Yezhou Yang and Zunlei Feng and Yizhou Yu and Dacheng Tao and Mingli Song},
  title = {{Stroke Controllable Fast Style Transfer with Adaptive Receptive Fields}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01261-8\_15},
}
Figure