-
Notifications
You must be signed in to change notification settings - Fork 18
/
dependencies
executable file
·37 lines (30 loc) · 1.35 KB
/
dependencies
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
35
36
37
#!/usr/bin/env bash
set -o errexit
# Download LUX (http://mcmahan.io/lux)
# Includes Munroe color corpus with train/dev/test split
if [ ! -e rugstk ]; then
echo 'Downloading LUX...'
curl -O http://paul.rutgers.edu/~bcm84/rugstk_v1.0.tar.gz
echo 'Extracting...'
tar xzf rugstk_v1.0.tar.gz
mv rugstk_v1 rugstk
rm rugstk_v1.0.tar.gz
fi
echo 'Installing NumPy, SciPy, Cython, and matplotlib (this could take a while)...'
pip install numpy 'cython>=0.21' 'SciPy>=0.9'
echo 'Installing Theano and Lasagne...'
pip install https://github.com/Theano/Theano/archive/master.zip
pip install https://github.com/Lasagne/Lasagne/archive/master.zip
echo 'Installing other Python module dependencies...'
pip install 'ConfigArgParse==0.10.0' 'pyhocon==0.3.18' pypng 'Protobuf>=3.0.0b2' scikit-learn scikit-image matplotlib
if [ ! -e tensorflow ]; then
echo 'Checking for tensorboard protos...'
( python -c 'import tensorflow.core.util.event_pb2' >/dev/null 2>&1 ) || (
echo "It looks like you don't have TensorFlow installed, so I'm putting a"
echo "symlink at ./tensorflow/ to just the bare minimum you need. If you"
echo "decide to install Tensorflow in the future, you can remove it."
ln -s third-party/tensorflow tensorflow
)
fi
echo 'Installing testing modules (optional)...'
pip install nose nose-exclude coverage mock