GeezerVison is showing github.com — Merge pull request #33 from abergeron/fix_dl · NoriVicJr/DeepLearningTutorials@fa66a32
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +17-4Lines changed: 17 additions & 4 deletions | 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)" |