A node example (maybe package at some point) to receive image from client and return results from DenseCap results.
Installation
- Install Torch.
- 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
- Follow the densecap installation instructions to install dependencies.
- Clone repo. Navigate terminal to the
node-densecap
directory. - Download the "pre-trained model" file (1GB!)
./download_pretrained_model.sh
- Install Node packages
npm install
- Run server
node server.js
- Open browser to
localhost:3000
.