Skip to content

Instantly share code, notes, and snippets.

@rreece
Created September 1, 2018 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rreece/529d94c9cbb832eab382df27039b7dfd to your computer and use it in GitHub Desktop.
Save rreece/529d94c9cbb832eab382df27039b7dfd to your computer and use it in GitHub Desktop.
#!/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