-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
35 lines (23 loc) · 1005 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# largely inspired from http://dmd.3e.org/2015/09/Neurally-Stylin/
# it is tailored for AWS instances with GPUs on it so that is runs fast enough
luarocks install image
luarocks install loadcaffe
luarocks install torch
echo "export LD_LIBRARY_PATH=/home/ubuntu/torch-distro/install/lib:/home/ubuntu/torch-distro/install/lib:/home/ubuntu/cudnn-6.5-linux-x64-v2-rc2" >> ~/.bashrc
git clone https://github.com/jcjohnson/neural-style
cd neural-style
sh models/download_models.sh
# let's install nodejs
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
source ~/.bash_profile
#clone our worker client
cd ~/
git clone https://github.com/DistArt/distart-worker.git
cd distart-worker/
npm install
echo ** Setup finish **
echo you now have to set the following environment variables:
echo NEURAL_STYLE_HOME, AZURE_STORAGE_ACCOUNT, AZURE_STORAGE_ACCESS_KEY, AZURE_STORAGE_CONNECTION_STRING
echo ___ run the server with \'node run-server.js\' ___