Pytorch and Torch testing code of CartoonGAN [Chen et al., CVPR18]
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Pytorch and Torch testing code of CartoonGAN
[Chen et al., CVPR18]. With the released pretrained models by the authors, I made these simple scripts for a quick test.
git clone https://github.com/Yijunmaverick/CartoonGAN-Test-Pytorch-Torch cd CartoonGAN-Test-Pytorch-Torch
The original pretrained models are Torch
nngraphmodels, which cannot be loaded in Pytorch through
load_lua. So I manually copy the weights (bias) layer by layer and convert them to
python test.py --input_dir YourImgDir --style Hosoda --gpu 0
Working with the original models in Torch is also fine. I just convert the weights (bias) in their models from CudaTensor to FloatTensor so that
cudnnis not required for loading models.
th test.lua -input_dir YourImgDir -style Hosoda -gpu 0