This is unofficial torch implementation for prediction of the paper, "CartoonGAN: Generative Adversarial Networks for Photo Cartoonization" [1]
| Input photo | Miyazaki Hayao style |
|---|---|
![]() |
![]() |
- Lua 5.1
- argparse
- torch7
- GPU environment
You can download pre-trained models from author' page. [Link]
--input: The path to an input file.--input_dir: The path to an input directory. If you specify this option, prediction will be done for all files under the specified directory regardless of the--inputoption.--output: The path to an output file. This option is paired with the--inputoption.--output_dir: The path to an output directory. This option is paired with the--input_diroption.--model: The path to a pre-trained model.
th predict.lua --input example/real.jpg --output example/cartoonized.jpg --model models/Hayao_net_G.t7
