Skip to content

Kiikurage/neural-style-transfer-webdnn

Repository files navigation

Neural Style Transfer

Example of Neural Style Transfer [Johnson+, 2016] with WebDNN

Neural Style Transfer

You can download pre-trained model from

How to Run

  1. Install WebDNN (see document)

  2. 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
  3. Convert model

    $ python convert.py --model kanagawa --backend webgpu

    --model option selects the style. For details, see python convert.py -h

  4. Access to index.html with your browser

Note

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.

License

MIT License, 2017, Yuichiro Kikuray.kikura@gmail.com

About

Example of Neural Style Transfer (Johnson+, 2016) with [WebDNN](https://github.com/mil-tokyo/webdnn)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published