#!/bin/bash

file_bboxes=$ILSVRC2012_BASEDIR/Dataset/BoundingBoxes/ILSVRC2012_bbox_train_v2.tar.gz

rm -rf $TMPDIR/input

mkdir -p $TMPDIR/input

echo "=========== Unzipping bounding boxes `date` ============="

tar -C $TMPDIR/input/ -xvf $file_bboxes

echo "=========== Processing bounding boxes `date` =============="

python $ILSVRC2012_BASEDIR/Tensorflow1.1/Preprocessing/process_bounding_boxes.py $TMPDIR/input > $ILSVRC2012_BASEDIR/Dataset/Metadata/imagenet_2012_bounding_boxes.csv
