get_cifar10.sh 504 Bytes
Newer Older
Evan Shelhamer's avatar
Evan Shelhamer committed
1
2
3
#!/usr/bin/env sh
# This scripts downloads the CIFAR10 (binary version) data and unzips it.

Evan Shelhamer's avatar
Evan Shelhamer committed
4
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
Evan Shelhamer's avatar
Evan Shelhamer committed
5
6
7
8
cd $DIR

echo "Downloading..."

9
wget --no-check-certificate http://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz
Evan Shelhamer's avatar
Evan Shelhamer committed
10
11
12
13
14
15
16
17
18
19

echo "Unzipping..."

tar -xf cifar-10-binary.tar.gz && rm -f cifar-10-binary.tar.gz
mv cifar-10-batches-bin/* . && rm -rf cifar-10-batches-bin

# Creation is split out because leveldb sometimes causes segfault
# and needs to be re-created.

echo "Done."