InkGAN: Generative Adversarial Networks for Ink-And-Wash Style Transfer of Photographs

Keyi Yu, Yu Wang, Sihan Zeng, Chen Liang, Xiaoyu Bai, Dachi Chen, Wenping WangAdv. Artif. Intell. Mach. Learn 2023

Abstract

InkGAN is a specialized Generative Adversarial Network (GAN) designed to transform standard photographs into authentic Chinese ink-and-wash paintings. By introducing a novel "smooth loss" and a dynamic training strategy, the model captures the characteristic blurriness and misty atmosphere of traditional ink art far more effectively than general-purpose models like CycleGAN.

Introduction

Style transfer—the art of applying the aesthetic of one image to the content of another—has seen massive leaps with deep learning. However, Chinese ink-and-wash painting presents a unique challenge. Unlike Western oil paintings that emphasize texture and vibrant color, ink-and-wash is abstract, uses a limited palette, and relies heavily on "misty" effects and smooth, watery strokes.

Existing state-of-the-art frameworks like CycleGAN often struggle with this. They tend to treat style transfer as a simple color-filtering exercise, failing to capture the structural "blurriness" and the specific artistic elements (like peach blossoms or mountain mists) that define the genre. The authors aim to bridge this gap by creating a model that understands the specific textural requirements of ink-and-wash art.

Example of the target Ink-and-Wash style, showcasing the characteristic misty atmosphere and abstract landscape elements.

Methods

The authors propose InkGAN, an end-to-end framework consisting of a Generator and a Discriminator.

Architecture

The generator uses a series of down-convolution blocks to extract features, residual blocks to process them, and transpose-convolution layers to reconstruct the stylized image. The discriminator is a simplified CNN designed for efficiency.

Architectural diagrams of the InkGAN Generator and Discriminator networks.

Loss Functions and Training Strategy

  • Content Loss (VGG16): To ensure the output doesn't lose the original photo's meaning, the authors use a pre-trained VGG16 network to compare features between the input and output. They use an L1 norm for this distance, which helps force specific dimensions of the image to remain identical to the original.
  • The "Smooth Loss": This is the paper's core contribution. The authors noticed that GANs naturally try to produce sharp images. To force the model to learn the "blurry" nature of ink paintings, they created "negative" style examples by artificially sharpening real ink paintings. The discriminator is then trained to reject these sharpened images, effectively teaching the generator that "blurriness" is a required feature of the style.
  • Dynamic Weighting: During training, the weight of the content loss ($w$) starts high (10) to help the model learn the basic structure of the image first, then gradually decreases (to 2) to allow the model more creative freedom to apply the ink style.

Datasets

The researchers curated a custom dataset for this task:

  • Style Dataset: 3,591 Chinese ink-and-wash images. These were meticulously collected by capturing frames from high-quality ink-style videos on platforms like YouTube, Bilibili, and Youku.
  • Content Dataset: 5,428 real-world photographs of natural scenery (mountains, trees, sea) sourced from Flickr.
  • Preprocessing: All images were reshaped to a standard size, with the shorter side resized to 224 pixels.

Key Results

  • Qualitative Superiority: Compared to CycleGAN, InkGAN produces much more "painterly" results. While CycleGAN mostly adds a color tint, InkGAN successfully introduces stylistic elements like mist and traditional brush-stroke textures.
  • Detail Preservation: Compared to older CNN-based methods, InkGAN does a better job of preserving fine details, such as the intricate textures of rocks and the specific shapes of trees, while still applying the abstract style.
  • Ablation Success: The ablation study clearly showed that the smooth loss is responsible for the "illusory" and "misty" feel that makes the output look like a real painting rather than a filtered photo.
  • Efficiency: The generator has approximately 6 million parameters, and training takes about 380 seconds per epoch on an Nvidia Tesla P100 GPU.

Conclusion

InkGAN effectively addresses the specific challenges of ink-and-wash style transfer through its innovative smooth loss and dynamic training. By treating blurriness as a semantic feature rather than a defect, the model achieves a level of authenticity that general-purpose style transfer models lack. Future work may explore broader domain applicability beyond natural scenery and direct comparisons with modern diffusion-based models.

Summary updated

BibTeX
@article{yu2023inkgan,
  author = {Keyi Yu and Yu Wang and Sihan Zeng and Chen Liang and Xiaoyu Bai and Dachi Chen and Wenping Wang},
  title = {{InkGAN: Generative Adversarial Networks for Ink-And-Wash Style Transfer of Photographs}},
  journal = {Adv. Artif. Intell. Mach. Learn},
  year = {2023},
  doi = {10.54364/aaiml.2023.1171},
}
Figure