[sh]脚本

2018-12-21  本文已影响0人  VanJordan
#!/usr/bin/env sh
set  -e
NET_NAME=dense_res_blstm
ROOT_PATH=/ai/zhaoliang/7_caffe_ocr_for_linux/jiaqian_ocr/caffe_ocr_for_linux/examples/ocr/densenet
MODULES=$ROOT_PATH/modules_$NET_NAME
GPU=0

DATASET=/ai/zhaoliang/price_tag/val/

SOLVER=$ROOT_PATH/solver.prototxt
LOG=$MODULES/test_log.log
mkdir $MODULES || true

cd  $MODULES
touch $LOG
cd /ai/zhaoliang/7_caffe_ocr_for_linux/jiaqian_ocr/caffe_ocr_for_linux/.build_release/tools
./ocr_test $DATASET $MODULES  -gpu $GPU chi 2>&1   | tee $LOG
#!/usr/bin/env sh
set -e
NET_NAME=dense_res_blstm
ROOT_PATH=/ai/zhaoliang/7_caffe_ocr_for_linux/jiaqian_ocr/caffe_ocr_for_linux/examples/ocr/densenet


MODULES=$ROOT_PATH/modules_$NET_NAME
GPU=0

LOG=$MODULES/train_log.log
SOLVER=$ROOT_PATH/solver.prototxt
GPU=1

mkdir $MODULES ||true
cd  $MODULES
touch $LOG


cd /ai/zhaoliang/7_caffe_ocr_for_linux/jiaqian_ocr/caffe_ocr_for_linux/.build_release/tools
./caffe train --solver=$SOLVER -gpu $GPU   2>&1   | tee $LOG $@
上一篇下一篇

猜你喜欢

热点阅读