The Report_FaceToCartoon.ipynb covers the details of the project.
You find an interactive demo under code/Demo.ipynb.
More details to the code are in code/README.md.
- Clone this repo using
git clone https://github.com/fs2019-atml/face-to-cartoon.git - Get the dataset from google drive
https://drive.google.com/open?id=12vU_Dkn13KqsVy5LOYlpoTJGWmzPqPQh - Untar the archive to
./code/datasets/to have all the images under./code/datasets/faces/{cartoon/*, real/*}(e.g.tar xf faces.tar.gzinside./code/datasets) - Install dependencies (See below)
- a) Invoke
python train.py --gpu_ids=0to train on cuda. b) Invokepython train.pyto wait forever.
We suggest an anaconda environment with the following:
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing
conda install pytorch torchvision -c pytorch # add cuda90 if CUDA 9 (or magma-cuda90)
conda install visdom dominate -c conda-forge # install visdom and dominate
If you run in troubles with Cuda try to downgrade pytorch to version 0.41.