/node-densecap

A node example (maybe package at some point) to receive image from client and return densecap results

Primary LanguageJavaScript

A node example (maybe package at some point) to receive image from client and return results from DenseCap results.

Installation

  1. Install Torch.
  2. If you get the error th: command not found, then you need to add the following to ~/.bash_profile.
nano ~/.bash_profile

Then add the following:

PATH=$PATH\:/Users/yourusername/torch/install/bin ; export PATH
  1. Follow the densecap installation instructions to install dependencies.
  2. Clone repo. Navigate terminal to the node-densecap directory.
  3. Download the "pre-trained model" file (1GB!)
./download_pretrained_model.sh
  1. Install Node packages
npm install
  1. Run server
node server.js
  1. Open browser to localhost:3000.