image-transformer icon indicating copy to clipboard operation
image-transformer copied to clipboard

React App for style transfer using ONNX Runtime Web. (fast-neural-style / AnimeGANv2)

Style transfer web app

Checkout the website live at : https://vicalloy.github.io/image-transformer/

React App for style transfer using ONNX Runtime Web.

screenshot

Usage

git clone https://github.com/vicalloy/image-transformer.git

Get the code.

yarn install

Install all dependencies from the project root folder.

yarn prepare

Copy *.wasm file to public directory and download onnx models from GitHub.

yarn start

Runs the app in the development mode.
Open http://localhost:3000/image-transformer to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

How to create you own onnx model

  • https://github.com/gnsmrky/pytorch-fast-neural-style-for-web

Thanks to

Some codes and models come from

  • https://github.com/kleinicke/fast_web_style_transfer/
  • https://github.com/microsoft/onnxruntime-web-demo
  • https://github.com/onnx/models/tree/master/vision/style_transfer/fast_neural_style
  • https://github.com/josephrocca/anime-gan-v2-web