-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathstab.sh
38 lines (29 loc) · 890 Bytes
/
stab.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function TEST {
DOMAIN=$1
NAME=$2
DIR=./data/"$DOMAIN"/"$NAME"
if [ "$3" = "local" ]; then
IMAGE="$DIR"/image
else
IMAGE=./data/images/$3
fi
NUMBER=$4
THREAD=$5
BATCH=$6
VERSION=$7
PATHES="-sm=$DIR/synet1.xml -sw=$DIR/synet1.bin -id=$IMAGE -od=$DIR/output -tp=$DIR/param.xml"
LOG="$DIR"/output/stability_t"$THREAD"_b"$BATCH"_v"$VERSION".txt
BIN_DIR=./build
BIN="$BIN_DIR"/test_stability
echo $LOG
if [ -f $IMAGE/descript.ion ];then rm $IMAGE/descript.ion; fi
export LD_LIBRARY_PATH="$BIN_DIR":$LD_LIBRARY_PATH
"$BIN" $PATHES -ie=10 -rn=$NUMBER -tt=$THREAD -bs=$BATCH -cs=1 -in=10 -ct=0.001 -cw=1 -dp=0 -dpf=6 -dpl=2 -dpp=6 -ll=5 -ln=$LOG
if [ $? -ne 0 ];then echo "Test $DIR is failed!"; exit; fi
echo
}
#TEST inference_engine test_010f faces 100 0 1 000
#TEST onnx test_000 face 100 0 1 000
TEST onnx test_001 faces 1000 0 1 000
#TEST stability fr_age20 face 100 0 1 000
exit