ethereon / netscope

Neural network visualizer
http://ethereon.github.io/netscope
948 stars 322 forks source link

Run netscope in localhost #4

Open beige90 opened 8 years ago

beige90 commented 8 years ago

Thanks for the great tool! I would like to run this on my local machine but doesn't know how. I ran npm install and npm start but didn't know what to do next. How can I do so?

ethereon commented 8 years ago

In a bit of an abuse of convention, npm start currently launches the watchify process that generates netscope.js. However, once it has been generated, you can launch a local instance by just statically serving the files (for instance, using python -m SimpleHTTPServer)

beige90 commented 8 years ago

@ethereon Thank you. I could run netscope in my local machine. Can you teach me briefly about how it works especially the netscope.js generation and what it does?

ethereon commented 8 years ago

Netscope is written in CoffeScript. The watchify command basically watches for changes to the CoffeeScript sources and compiles them into a single javascript file (netscope.js).

The parser (generated from the included peg.js grammar) parses Caffe's prototxt and creates a DAG, which is rendered as an SVG using dagre.

thesby commented 8 years ago

Could you please give a detailed description about the usage in localhost ?

thesby commented 8 years ago

OK, I have solved it. Thank you. Could you please show the input size and output size of each layer if the size of data-layer is given ?

coocoky commented 7 years ago

@thesby how you solved? Could you please give a detailed description about the usage in localhost ?

rlnx commented 7 years ago

@coocoky, I'd suggest using node.js http-server

npm install http-server -g
cd netscope
http-server

If you want to make changes in the source code, install dependencies vianpm install. And then run npm start, it will enable live translation from CoffeeScript to JS.

changshuchao commented 7 years ago

@thesby how you solved? Could you please give a detailed description about the usage in localhost ?

changshuchao commented 7 years ago

@RuslanIsrafilov Witch OS? WINDOWS? Linux?

rlnx commented 7 years ago

@changshuchao, here is crossplatform solution.

changshuchao commented 7 years ago

@RuslanIsrafilov tks,bro