Research Article

The Style Transfer of Photos and Landscape Paintings Based on CycleGAN Combined with Nested Edge Detection Module

Yueling Jin1,*, Zeyang Li2, Tiantian Lu3
1. Shanghai Ocean University
2. University of California Santa Barbara
3. University of California Irvine

* Corresponding author: [email protected]

Abstract

Chinese landscape paintings, especially Chinese landscape ink paintings have always been the treasure of the Chinese, or even the world culture. Due to the advancement of the science and knowledge, there are always interests for finding ways to produce Chinese landscape paintings through the way of the technology. In this paper, based on the original CycleGAN model, we are trying to transfer a real-world photograph to a typical Chinese landscape painting. To be specific, the brushwork in Chinese ink paintings contains enormous numbers of distinct and technical brush strokes which makes it extremely hard for CycleGAN to recognize and transfer Chinese ink painting. We improved the brushstroke effect of Chinese ink painting still by incorporating the Holistically Nested Edge Detection (HED) method into the CycleGAN model. The HED module puts the source image and the corresponding generated image into the convolution layer of five stages to generate their respective edge maps. The balanced cross-entropy loss calculated with edge maps is added to the total loss of CycleGAN to train the generator which is confronted with discriminator to improve output results. The addition of HED enables the extraction of edge features from the images, preserving the structural information and enhancing the accuracy of the style transfer, so the detailed of the Chinese ink painting can be transferred better in this sense. Experimental process with model building, training, validating, and predicting concludes that, complementing HED method into the original CycleGAN models well preserved distinct features in the conversion processes from real-world photographs to traditional Chinese landscape paintings.

Keywords: Chinese landscape painting; style transfer; CycleGAN; HED
Published: August 1, 2023
DOI: 10.54254/2755-2721/8/20230118
Volume: ACE Vol.8
pp. 153-161
Download PDF

References

  1. Zhang G Chen J L Song J et al 2020 Chinese Landscape Painting Automatic Generation Model Based on Adversarial Generation Network (in Chinese), Phase 3 Computer and Telecommunications p 6
  2. Zhao J Li F F 2023 A GAN-based Lightweight ink Painting Style Transfer Model (in Chinese) Volume 36 Issue 2 Electronic Science and Technology p 6
  3. Niemitalo O 2010 A method for training artificial neural networks to generate missing data within a variable context Internet Archive (Wayback Machine). Archived from the original on March 12 2012 Retrieved February 22 2019
  4. Goodfellow I and Pouget-Abadie J and Mirza M et al 2014 Generative Adversarial Nets (Massachusetts:MIT Press/Neural Information Processing Systems)
  5. Zhu J Y and Park T and Isola P et al 2017 Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks (IEEE)
  6. Isola P and Zhu J Y and Zhou T et al 2016 Image-to-Image Translation with Conditional Adversarial Networks Proceedings of the IEEE conference on computer vision and pattern recognition pp1125-1134 He B and Feng G and Ma D et al 2018 ChipGAN: A Generative Adversarial Network for Chinese Ink Wash Painting Style Transfer (ACM/Multimedia Conference)
  7. Xue A 2020 End-to-End Chinese Landscape Painting Creation Using Generative Adversarial Networks Proceedings of the IEEE/CVF Winter conference on applications of computer vision pp 3863-3871
  8. Google 2022 Introduction | Machine Learning | Google Developers https://developers.google.com/machine-learning/gan#:~:text=Generative%20adversarial%20networks%20(GANs)%20are,belong%20to%20any%20real%20person
  9. He K and Zhang X and Ren S et al 2016 Deep Residual Learning for Image Recognition (IEEE)