https://github.com/mingtaoguo/cartoongan-tensorflow
Simple code implement the paper of CartoonGAN(CVPR2018)
https://github.com/mingtaoguo/cartoongan-tensorflow
cartoon-style-transfer cartoongan gan generative-adversarial-network style-transfer tensorflow
Last synced: 12 months ago
JSON representation
Simple code implement the paper of CartoonGAN(CVPR2018)
- Host: GitHub
- URL: https://github.com/mingtaoguo/cartoongan-tensorflow
- Owner: MingtaoGuo
- License: mit
- Created: 2018-07-26T14:43:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T02:17:22.000Z (almost 8 years ago)
- Last Synced: 2025-04-05T13:11:19.582Z (about 1 year ago)
- Topics: cartoon-style-transfer, cartoongan, gan, generative-adversarial-network, style-transfer, tensorflow
- Language: Python
- Homepage:
- Size: 124 KB
- Stars: 16
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CartoonGAN-tensorflow
Simple code implement the paper of CartoonGAN
## Introduction
This simple code mainly implement the paper about [CartoonGAN](http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_CartoonGAN_Generative_Adversarial_CVPR_2018_paper.pdf), which is published at CVPR2018. This paper mainly address the problem of styling the nature images to cartoon by using GANs.
#### There are three contributions in the paper:
1. Removing the clear edge of original cartoon images as a new datasets
2. Using high-level feature maps in vgg19 to reconstruct the content
3. Initializing the generator by reconstructing the nature images
## Results of the paper

## How to use the code
#### Python packages you need
1. python 3.x
2. tensorflow 1.4.0
3. pillow
4. scipy
5. cv2
6. numpy
#### Process of using
1. Download the cartoon movie, then using 'vedio2img.py' to extract the cartoon images from the cartoon movie. Finally, put the extracted cartoon imges into the folder 'c'.
2. Using 'remove_clear_edge.py' to remove the extracted cartoon images' clear edge as a new datasets, and then put the unclear edge cartoon images into the folder 'e'
3. Download the nature image datasets(we use [MSCOCO](http://images.cocodataset.org/zips/train2017.zip) here, not [Flicker](https://www.flickr.com/photos/tags/flicker/)), and then put the unzipped MSCOCO datasets into the folder 'MSCOCO'.
## Results of our code
### I'm sorry, this code is under training ..........