create_data.sh

root_dir=/home/jin/caffe_dssd
echo rootdircd r o o t d i r c d root_dir

redo=1
data_root_dir=”$HOME/Downloads/PyData/Cares”
dataset_name=”VOCar_plate”

mapfile=”/home/jin/Downloads/PyData/Cares/labelmap_carplate.prototxt”
anno_type=”detection”
db=”lmdb”
min_dim=0
max_dim=0
width=0
height=0

extra_cmd=”–encode-type=jpg –encoded”
if [ redo]thenextracmd= r e d o ] t h e n e x t r a c m d = ” extra_cmd –redo”
fi
for subset in test trainval

python rootdir/scripts/createannoset.pyannotype= r o o t d i r / s c r i p t s / c r e a t e a n n o s e t . p y − − a n n o − t y p e = anno_type
–label-map-file= mapfilemindim= m a p f i l e − − m i n − d i m = min_dim –max-dim= maxdimresizewidth= m a x d i m – r e s i z e − w i d t h = width --resize-height= heightchecklabel h e i g h t – c h e c k − l a b e l extra_cmd datarootdir d a t a r o o t d i r data_root_dir/ subset.txt s u b s e t . t x t data_root_dir/ datasetname/ d a t a s e t n a m e / db/ datasetname d a t a s e t n a m e ” ” subset"_" dbexamples/ d b e x a m p l e s / dataset_name

done

你可能感兴趣的:(shell)