reiinakano / fast-style-transfer-deeplearnjs

Demo of in-browser Fast Neural Style Transfer with deeplearn.js library

Home Page:https://reiinakano.github.io/fast-style-transfer-deeplearnjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and deploy

Yagun opened this issue · comments

commented

Hi,

I really like your project.

Recently I tried it in the "watch" mode and decided to build it and then run on my local node.js server. After executing the deploy-demo script I got a single HTML file (730 kB) in a new folder (I called it "distr"). I tried to run it, but it does not work properly. It shows the controls, but does not show the pictures (source and style) and the button does nothing.

Please explain how to build the project properly and what files and folders does it need to work. For example, it requires a script from bower_components\webcomponentsjs folder, I copied this folder to the distr folder, but it changed nothing.

Thank you in advance.

Hi, I've never actually used the deploy-demo script before so I'm not sure how that works. I only use watch-demo. Did you run npm install && bower install? If that works without issue then you run ./scripts/watch-demo src/styletransfer-demo.ts next.