Created
September 1, 2018 19:00
-
-
Save rreece/529d94c9cbb832eab382df27039b7dfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# This scripts downloads the mnist data and unzips it. | |
DIR="$( cd "$(dirname "$0")" ; pwd -P )" | |
cd "$DIR" | |
echo "Downloading..." | |
for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte | |
do | |
if [ ! -e $fname ]; then | |
wget --no-check-certificate http://yann.lecun.com/exdb/mnist/${fname}.gz | |
gunzip ${fname}.gz | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment