Chinese Painting Generation Using Generative Adversarial...

1
Chinese Painting Generation Using Generative Adversarial Networks Yuan Chen ? , Ying Chen , Guanyang Wang ? Stanford Applied Physics, Yahoo!, Stanford Math Email: {ychen12, ychen107, guanyang}@stanford.edu Introduction: Which Picture is Fake? Example (Reconstructing Problem): reconstruct a Chinese painting from its edge map 1 Left: Our input (edge of the target painting). 2 Middle and Right: One original painting, the other ’drawn’ by computer. 3 Guess which is the real one? The ’fake’ image is generated by Generative adversarial networks (GANs). The purpose of our project is to generate realistic-looking Chinese paintings using different types of GANs. Datasets and Preprocessing Scratching: All the Chinese paintings are scratched from Google and Baidu. The dataset is cleaned to prevent repeated and unrelated images. Reshaping: All images are shaped to be 256 × 256. Edge Extracting: The edges are extracted by Canny edge detection. Implemented Methods cGANs: Used for image-to-image translation (edgepainting, black white paintingcolored painting) 1 Condition on an input image and generate a corresponding output image. DCGANs: Used for creating new paintings from noise. 1 Both the generator and discriminator use the deep convolutional neural network architecture. WGANs: Used for creating new paintings from noise. 1 Remove log in the loss formula in the original GANs paper. 2 Do not apply sigmoid at the output of D . 3 Clip the weight of D to [-0.01, 0.01]. cGANs performance Edges Paintings: Left three images: Input Edge, Fake Painting, True Painting Right two images: Loss of Discriminator, Loss of Generator 1 Tones and colorization methods of Chinese paintings are learned. 2 Sometimes cGANs have an effect on sharpening in the spectral dimension, i.e. making images more colorful. Performance of DCGANs and WGANs Generating Paintings: Generate paintings using our full dataset of Chinese Paintings. Left: Paintings generated by WGAN Middle: Paintings generated by DCGAN Top Right: Loss of Discriminator of WGAN Bottom Right: Loss of Generator of WGAN 1 DCGAN and WGAN give results with similar qualities. 2 WGAN is more stable while training. 3 WGAN is slightly slower in training than DCGAN.

Transcript of Chinese Painting Generation Using Generative Adversarial...

Page 1: Chinese Painting Generation Using Generative Adversarial ...cs231n.stanford.edu/reports/2017/posters/311.pdf · Chinese Painting Generation Using Generative Adversarial Networks Yuan

Chinese Painting Generation Using Generative Adversarial NetworksYuan Chen?, Ying Chen†, Guanyang Wang‡

? Stanford Applied Physics, † Yahoo!, ‡ Stanford MathEmail: {ychen12, ychen107, guanyang}@stanford.edu

Introduction: Which Picture is Fake?

Example (Reconstructing Problem): reconstruct a Chinese painting from its edge map

1 Left: Our input (edge of the target painting).2 Middle and Right: One original painting, the other ’drawn’ by computer.3 Guess which is the real one?

The ’fake’ image is generated by Generative adversarial networks (GANs). The purpose of our project isto generate realistic-looking Chinese paintings using different types of GANs.

Datasets and Preprocessing

Scratching: All the Chinese paintings are scratched from Google and Baidu. The dataset is cleaned toprevent repeated and unrelated images.Reshaping: All images are shaped to be 256× 256.Edge Extracting: The edges are extracted by Canny edge detection.

Implemented Methods

cGANs: Used for image-to-image translation (edge→ painting, black white painting→ colored painting)1 Condition on an input image and generate a corresponding output image.

DCGANs: Used for creating new paintings from noise.1 Both the generator and discriminator use the deep convolutional neural network architecture.

WGANs: Used for creating new paintings from noise.1 Remove log in the loss formula in the original GANs paper.2 Do not apply sigmoid at the output of D.3 Clip the weight of D to [−0.01, 0.01].

cGANs performance

Edges → Paintings:

Left three images: Input Edge, Fake Painting, True PaintingRight two images: Loss of Discriminator, Loss of Generator

1 Tones and colorization methods of Chinese paintings are learned.2 Sometimes cGANs have an effect on sharpening in the spectral dimension, i.e. making images more

colorful.

Performance of DCGANs and WGANs

Generating Paintings: Generate paintings using our full dataset of Chinese Paintings.

Left: Paintings generated by WGAN Middle: Paintings generated by DCGANTop Right: Loss of Discriminator of WGAN Bottom Right: Loss of Generator of WGAN

1 DCGAN and WGAN give results with similar qualities.2 WGAN is more stable while training.3 WGAN is slightly slower in training than DCGAN.