Coder Social home page Coder Social logo

neural-style-server's Introduction

neural-style-server

A web server frontend for https://github.com/jcjohnson/neural-style

Setup

Dependencies:

Follow the neural-style setup instructions for installing neural-style and all of its dependencies. neural-style-server assumes that neural-style is being used with NVidia hardware, CUDA, and CuDNN (e.g. it depends on nvidia-smi for enumerating GPUs).

Once you have neural-style set up, clone the neural-style-server repository. You'll need to edit config/default.json or add your own config file e.g. config/local.json - see the node-config documentation for more information about config file naming and load order.

Config options:

  • port: (required) The HTTP server port on which the web server will listen.
  • dataPath: (required) The directory where image and settings input files and image output files will be stored. There shouldn't be any other files in this directory - neural-style-server will scan it on startup to discover data created by previous runs.
  • neuralStylePath: (requierd) The directory where the neural-style repository is cloned.
  • username: (optional) A username to use for HTTP basic auth. May be omitted to disable auth.
  • password: (optional) A password to use for HTTP basic auth. May be omitted to disable auth.

Run

You must run neural-style-server from a shell that has environment variables configured to use Torch (if you did not allow the Torch installer to configure this by default, you can run source install/bin/torch-activate from the Torch directory to set up the necessary environment).

To launch neural-style-server, run:

nodejs app.js

Screenshot

neural-style-server's People

Contributors

obijywk avatar sheerun avatar lcb931023 avatar

Stargazers

John Haugeland avatar  avatar Jack Spektor avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.