create_data.sh

root_dir=/home/jin/caffe_dssd
echo rootdircdroot_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=extra_cmd –redo”
fi
for subset in test trainval

python rootdir/scripts/createannoset.pyannotype=anno_type
–label-map-file=mapfilemindim=min_dim –max-dim=maxdimresizewidth=width --resize-height=heightchecklabelextra_cmd datarootdirdata_root_dir/subset.txtdata_root_dir/datasetname/db/datasetnamesubset"_"dbexamples/dataset_name

done

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页