#!/usr/bin/env bash

mkdir -p "datasets/mnist"

curl --request GET -sL \
     --url 'https://storage.googleapis.com/cvdf-datasets/mnist/train-images-idx3-ubyte.gz'\
     --output 'datasets/mnist/train-images-idx3-ubyte.gz'

curl --request GET -sL \
     --url 'https://storage.googleapis.com/cvdf-datasets/mnist/train-labels-idx1-ubyte.gz'\
     --output 'datasets/mnist/train-labels-idx1-ubyte.gz'

curl --request GET -sL \
     --url 'https://storage.googleapis.com/cvdf-datasets/mnist/t10k-images-idx3-ubyte.gz'\
     --output 'datasets/mnist/t10k-images-idx3-ubyte.gz'

curl --request GET -sL \
     --url 'https://storage.googleapis.com/cvdf-datasets/mnist/t10k-labels-idx1-ubyte.gz'\
     --output 'datasets/mnist/t10k-labels-idx1-ubyte.gz'