SET GLOG_logtostderr=2
cur_dir=$(cd $( dirname ${BASH_SOURCE[0]} ) && pwd )
root_dir=$cur_dir/../..
cd $root_dir
redo=1
data_root_dir="/"
save_dir="/home/lab305/caffe-ssd/data/ssd"
dataset_name="text"
mapfile="/home/lab305/caffe-ssd/data/ssd/labelmap.prototxt"
anno_type="detection"
db="lmdb"
min_dim=0
max_dim=0
width=768
height=768
extra_cmd="--encode-type=jpg --encoded"
if [ $redo ]
then
extra_cmd="$extra_cmd --redo"
fi
for subset in test train
do
python2 /home/lab305/caffe-ssd/scripts/create_annoset.py --anno-type=$anno_type --label-map-file=$mapfile --min-dim=$min_dim --max-dim=$max_dim --resize-width=$width --resize-height=$height --check-label $extra_cmd $data_root_dir /home/lab305/caffe-ssd/data/ssd/$subset.txt $save_dir/$db"_"$subset"_"$db data/ssd/$dataset_name
done