Simple code implement the paper of CartoonGAN
This simple code mainly implement the paper about CartoonGAN, which is published at CVPR2018. This paper mainly address the problem of styling the nature images to cartoon by using GANs.
- Removing the clear edge of original cartoon images as a new datasets
- Using high-level feature maps in vgg19 to reconstruct the content
- Initializing the generator by reconstructing the nature images
- python 3.x
- tensorflow 1.4.0
- pillow
- scipy
- cv2
- numpy
- 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'.
- 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'
- Download the nature image datasets(we use MSCOCO here, not Flicker), and then put the unzipped MSCOCO datasets into the folder 'MSCOCO'.