keras version of CartoonGan.
- python 3.6
- tensorflow 1.13.1
- Pillow
- matplotlib
- etc.
I recommend that you create and use an anaconda env that is independent of your project. You can create anaconda env for this project by following these simple steps. This process has been verified on Windows 10 and ubuntu 16.04.
$ conda create -n cartoon python=3.6
$ activate cartoon # in linux "source activate cartoon"
(cartoon) $ pip install tensorflow==1.13.1
(cartoon) $ pip install pillow
(cartoon) $ pip install matplotlib
You can generate cartoonized image through the following command.
project/root> python main.py -i sample_in/sjtu.jpg
You can see the following result.
If you just run main.py, you can reproduce the above results!
Paper Result | My Result (This Repo.) |