-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgrabDependencies.sh
executable file
·67 lines (53 loc) · 1.39 KB
/
grabDependencies.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
function createDirectories()
{
echo Creating data directories.
mkdir data
mkdir data/cifarKaggle
mkdir data/cifarKaggle/test
mkdir data/cifarKaggle/train
}
function downloadFiles()
{
echo Downloading data.
pushd .
cd data
if [ -e mnist.pkl.gz ]
then
echo MNIST data set already downloaded.
else
curl http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz > mnist.pkl.gz
fi
if [ -e cifar-10-python.tar.gz ]
then
echo CIFAR 10 data set already downloaded.
else
curl http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz > cifar-10-python.tar.gz
fi
if [ -e cifar-100-python.tar.gz ]
then
echo CIFAR 100 data set already downloaded.
else
curl http://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz > cifar-100-python.tar.gz
fi
popd
}
function cloneRepos()
{
pushd .
cd demos
git clone [email protected]:lisa-lab/DeepLearningTutorials.git
git clone [email protected]:fsprojects/Vulpes.git
git clone [email protected]:jdeng/rbm-mnist.git
git clone [email protected]:nigma/pywt.git
if [ -e cuda-convnet-read-only ]
then
echo cuda-convnet repo set already cloned.
else
svn checkout http://cuda-convnet.googlecode.com/svn/trunk/ cuda-convnet-read-only
fi
popd
}
createDirectories
downloadFiles
cloneRepos