Pytorch and Torch testing code of CartoonGAN [Chen et al., CVPR18]
. With the released pretrained models by the authors.
- Linux
- NVIDIA GPU
Original repo places here https://github.com/Yijunmaverick/CartoonGAN-Test-Pytorch-Torch
git clone https://github.com/MalchuL/CartoonGAN-Test-Pytorch-Jupyter
cd CartoonGAN-Test-Pytorch-Jupyter
- Download the converted models:
sh pretrained_model/download_pth.sh
Install requirements:
pip install -r requirements.txt
- For testing: To process single style
python test.py --input_dir YourImgDir --style Hosoda --gpu 0
To process all available styles:
python multitest.py --load_size=920
Also here available run from Jupyter Notebook