Ancient Painting to Natural Image: A New Solution for Painting Processing

Tingting Qiao, Weijing Zhang, Miao Zhang, Zixuan Ma, Duanqing Xu

TL;DR

Instead of struggling to train computer vision models on small, highly stylized datasets of ancient art, this paper proposes "naturalizing" paintings into photo-realistic images. By using a novel Domain Style Transfer Network (DSTN), the authors transform ancient Chinese paintings into natural images, allowing standard models pre-trained on massive datasets like ImageNet to perform classification and segmentation with high accuracy.

What Problem Does This Paper Address?

Computer vision has made massive leaps thanks to large-scale, well-annotated datasets like ImageNet and COCO. However, ancient paintings present a unique challenge: the number of surviving works is limited, and their styles vary wildly across different eras and artists.

Directly applying models trained on natural photos to these paintings usually fails due to "domain bias"—the visual features of a painted bird or flower are fundamentally different from their real-world counterparts. Traditionally, this meant researchers had to rely on labor-intensive manual processing. This paper seeks a way to bridge the gap between the rich knowledge stored in natural image models and the sparse, stylized world of ancient art.

Methods

The core innovation is the Domain Style Transfer Network (DSTN). While most style transfer research focuses on making photos look like paintings, the DSTN does the opposite: it removes the "artistic" style to reveal a photo-realistic version of the subject.

Figure 1: General idea. We present a novel solution for an- cient painting processing. Ancient paintings are first trans- ferred to photo-realistic natural images by the proposed Do- main Style Transfer Network (DSTN). Then, the models trained on the natural image domain can be directly applied to transferred paintings. By doing so, painting processing problems become natural image processing problems.

The DSTN is based on Generative Adversarial Networks (GANs) and utilizes a compound loss function to ensure the output is both realistic and faithful to the original:

  • Adversarial Loss: Ensures the generated image looks like a real photo.
  • Cycle Consistency Loss: Prevents "mode collapse" by ensuring that if you transfer a painting to a photo and back again, you get the original painting.
  • Identity Loss: Helps preserve the original color composition.
  • Content Loss: Uses a pre-trained VGG-16 network to ensure the high-level structural content (the "what" of the image) remains unchanged during the transfer.
Figure 3: (a) Structure of the Domian Style Transfer Network (DSTN), in which two mapping functions G and F between two domains are learned. For the generator G and its corresponding discriminator Dy, a compound loss, which consists of (b) LGANG, (c) LcycG, (d) LconG and (e) LidG, is employed.

Datasets

The authors manually collected and introduced three new datasets of ancient Chinese paintings, primarily from the Song and Qing Dynasties:

  1. Chinese Flower Painting (CFP): 2,285 training images, 650 testing.
  2. Chinese Bird Painting (CBP): 2,119 training images, 600 testing.
  3. Chinese Landscape Painting (CLP): 2,009 training images, 600 testing.

These were paired with natural images retrieved from Google Image Search and the Caltech-UCSD Birds200 dataset for training the domain transfer.

Figure 2: Examples of datasets collected for domain style transfer.

Key Insights and Ideas

  • Data Transformation over Model Adaptation: Instead of trying to make a model understand "art," it is more effective to transform the art into a format the model already understands (natural images).
  • The Importance of Content Preservation: The authors found that standard unsupervised translation (like CycleGAN) often produced unpredictable colors or lost fine details. Adding a specific Content Loss ($L_{con}$) was vital for maintaining the integrity of the original artwork's structure.
  • Removing Style as a Pre-processing Step: By treating style removal as a pre-processing step, ancient painting processing effectively becomes a standard "natural image processing problem," opening the door to using state-of-the-art tools for classification and segmentation without needing massive new labeled art datasets.

Key Results

The DSTN significantly outperformed existing methods like CycleGAN and DualGAN in both quantitative and qualitative tests:

  • Fine-grained Classification: A ResNet-152 model trained on natural flowers achieved 93.56% accuracy on paintings transferred by DSTN, compared to only ~83-88% for other transfer methods.
  • Semantic Segmentation: For bird paintings, the DSTN achieved a pixel accuracy of 92.06%, allowing for much cleaner extraction of subjects from their backgrounds than previous methods.
  • Human Perceptual Study: In "real vs. fake" tests, the DSTN-generated images were highly convincing. Participants were fooled into thinking the generated natural images were real photos 43.66% of the time for flowers and 44.78% for landscapes—nearly double the success rate of standard CycleGAN.
Figure 5: Comparison of details of images generated by the DSTN with and without Lcon. Although the generated images produced by both methods look similar in general, the images generated by the DSTN with Lcon look aesthetically better and more detailed.

Limitations and Future Work

The authors note that they chose to transfer from Painting $\rightarrow$ Natural because the limited number and high diversity of ancient paintings make the reverse mapping (Natural $\rightarrow$ Painting) highly uncertain.

Future work could involve applying this "naturalization" technique to other domains where labeled data is scarce but natural counterparts exist. Additionally, while the current model handles flowers, birds, and landscapes well, expanding this to more complex scenes or different cultural art styles remains an open area for exploration.

Summary updated

Abstract

Collecting a large-scale and well-annotated dataset for image processing has become a common practice in computer vision. However, in the ancient painting area, this task is not practical as the number of paintings is limited and their style is greatly diverse. We, therefore, propose a novel solution for the problems that come with ancient painting processing. This is to use domain transfer to convert ancient paintings to photo-realistic natural images. By doing so, the ancient painting processing problems become natural image processing problems and models trained on natural images can be directly applied to the transferred paintings. Specifically, we focus on Chinese ancient flower, bird and landscape paintings in this work. A novel Domain Style Transfer Network (DSTN) is proposed to transfer ancient paintings to natural images which employ a compound loss to ensure that the transferred paintings still maintain the color composition and content of the input paintings. The experiment results show that the transferred paintings generated by the DSTN have a better performance in both the human perceptual test and other image processing tasks than other state-of-art methods, indicating the authenticity of the transferred paintings and the superiority of the proposed method.
BibTeX
@misc{qiao2019ancient,
  author = {Tingting Qiao and Weijing Zhang and Miao Zhang and Zixuan Ma and Duanqing Xu},
  title = {{Ancient Painting to Natural Image: A New Solution for Painting Processing}},
  year = {2019},
  eprint = {1901.00224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.00224},
}
Figure