create_data_Drone.sh

cur_dir=$(cd $( dirname ${BASH_SOURCE[0]} ) && pwd )
root_dir=$HOME/caffe-ssd

#modify 4places    1.root_dir  2.data_root_dir   3.dataset_name 4.mapfile 

cd $root_dir

redo=1
data_root_dir="$HOME/DronCV"
dataset_name="VOC2019"
mapfile="/home/james/DronCV/VOC2019/labelmap_drone.prototxt"   #your path of labelmap_drone.prototxt file 
anno_type="detection"
db="lmdb"
min_dim=0
max_dim=0
width=0
height=0

extra_cmd="--encode-type=jpg --encoded"
if [ $redo ]
then
  extra_cmd="$extra_cmd --redo"
fi
for subset in test trainval
do
  python $root_dir/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/james/DronCV/VOC2019/$subset.txt $data_root_dir/$dataset_name/$db/$dataset_name"_"$subset"_"$db examples/$dataset_name
done

你可能感兴趣的:(create_data_Drone.sh)