File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- wget -c http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz
4
- wget -c http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist_py3k.pkl.gz
5
- wget -c http://www.iro.umontreal.ca/~lisa/deep/data/Nottingham.zip && unzip -u Nottingham.zip
6
- wget -c http://www.iro.umontreal.ca/~lisa/deep/midi.zip && unzip -u midi.zip -d ../code && echo " extracted Modified Python MIDI package (GPL)"
3
+ which wget > /dev/null 2>&1
4
+ WGET=$?
5
+ which curl > /dev/null 2>&1
6
+ CURL=$?
7
+ if [ " $WGET " -eq 0 ]; then
8
+ DL_CMD=" wget -c"
9
+ elif [ " $CURL " -eq 0 ]; then
10
+ DL_CMD=" curl -C - -O"
11
+ else
12
+ echo " You need wget or curl installed to download"
13
+ exit 1
14
+ fi
15
+
16
+ $DL_CMD http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz
17
+ $DL_CMD http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist_py3k.pkl.gz
18
+ $DL_CMD http://www.iro.umontreal.ca/~lisa/deep/data/Nottingham.zip && unzip -u Nottingham.zip
19
+ $DL_CMD http://www.iro.umontreal.ca/~lisa/deep/midi.zip && unzip -u midi.zip -d ../code && echo " extracted Modified Python MIDI package (GPL)"
You can’t perform that action at this time.
0 commit comments