#!/usr/bin/env sh# This script converts the cifar data into leveldb format.set-eEXAMPLE=examples/cifar10DATA=data/cifar10DBTYPE=lmdbecho"Creating $DBTYPE..."rm-rf$EXAMPLE/cifar10_train_$DBTYPE$EXAMPLE/cifar10_test_$DBTYPE./build/examples/cifar10/convert_cifar_data.bin $DATA$EXAMPLE$DBTYPEecho"Computing image mean..."./build/tools/compute_image_mean -backend=$DBTYPE\$EXAMPLE/cifar10_train_$DBTYPE$EXAMPLE/mean.binaryprotoecho"Done."