Pytorch implement of Yezhi Shu, Ran Yi, Mengfei Xia, Zipeng Ye, Wang Zhao, Yang Chen, Yu-Kun Lai, Yong-Jin Liu. GAN-based Multi-Style Photo Cartoonization. IEEE Transactions on Visualization and Computer Graphics, DOI (identifier) 10.1109/TVCG.2021.3067201, 2021.
Install PyTorch 1.2.0+ and torchvision from http://pytorch.org and other dependencies could be downloaded by
pip install -r requirements.txt
├─datasets
├─dataset name
├─ edge1_[style1name]
├─ edge2_[style2name]
├─ edge3_[style3name]
├─ test0
├─ train0
├─ train1_[style1name]
├─ train2_[style2name]
└─ train3_[style3name]
python train.py --init --name train --dataroot [your dataset path]
python test.py --name train --serial_test --dataroot [your dataset path] --which_epoch 145