Chainer v4.0 implementation of "Image Style Transfer Using Convolutional Neural Networks(2016)" by Gatys et al.
Image Style Transfer Using Convolutional Neural Networks. Gatys, L.A. et al(2016)
The purpose is further research of Gatsy's article. So source code keeps very simple for modification and for that reason, the sophisticated functions of chainer(i.e. updater, trainer) are not used.
hourly bell at Kawagoe city Japan.
"Starry Night" by Van Gogh.
"Gardanne" by Paul Cezanne.
GPU: GeForce GTX1080i
Elapsed Time: about 12min for generating 600px squared image.
- python3.5 (3.0+)
- chainer4.0
- cupy4.0.0
- cuda8.0+
- cuDNN6.0+
python generate.py -i images/tokinokane600.jpg -s [dir_path]/style.png -o [dir_path for output] -g 0
Shape of images must be square.
See source
thanks to the authors to which I referred.
- chainer-gogh(https://github.com/pfnet-research/chainer-gogh)