-
Notifications
You must be signed in to change notification settings - Fork 57
/
keras.sh
executable file
·42 lines (33 loc) · 852 Bytes
/
keras.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
35
36
37
38
39
40
41
42
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# Keras - keras.io"
echo "############################"
echo ""
echo "Deep Learning library for Python. Convnets, recurrent neural networks, and more. Runs on Theano or TensorFlow."
echo ""
echo "MANUAL STEPS REQUIRED - FIRST FOLLOW tensorflow.sh instructions"
# install https://github.com/fchollet/keras
cd ~/src/
if [ ! -d ~/src/keras ]
then
git clone https://github.com/fchollet/keras.git
fi
cd keras
git pull
sudo python setup.py install
# python setup.py install --user
cd ~/src/
if [ ! -d ~/src/keras-contrib ]
then
git clone https://github.com/farizrahman4u/keras-contrib.git
fi
cd keras-contrib
git pull
sudo python setup.py install
# python setup.py install --user
cd $DIR