reiinakano / fast-style-transfer-deeplearnjs

Demo of in-browser Fast Neural Style Transfer with deeplearn.js library
https://reiinakano.github.io/fast-style-transfer-deeplearnjs
MIT License
1.35k stars 110 forks source link

Build and deploy #12

Open Yagun opened 6 years ago

Yagun commented 6 years ago

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.

reiinakano commented 6 years ago

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.