Example of Neural Style Transfer [Johnson+, 2016] with WebDNN
You can download pre-trained model from
-
Install WebDNN (see document)
-
Clone gafr/chainer-fast-neuralstyle-models at root directory of this repository. Note: Download of about 200MB model is needed.
$ git clone https://github.com/gafr/chainer-fast-neuralstyle-models
-
Convert model
$ python convert.py --model kanagawa --backend webgpu
--model
option selects the style. For details, seepython convert.py -h
-
Access to
index.html
with your browser
This example use Placeholder feature in WebDNN, which supports specifying tensor shape at runtime. However, only WebGPU and WebAssembly backend supports this feature and WebGL backend does NOT support.
MIT License, 2017, Yuichiro Kikura[email protected]