-
Notifications
You must be signed in to change notification settings - Fork 4
/
eval.sh
executable file
·62 lines (58 loc) · 1.28 KB
/
eval.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
export GPUID=0
export NET="squeezeSeg"
export IMAGE_SET="val"
export LOG_DIR="./log/"
if [ $# -eq 0 ]
then
echo "Usage: ./scripts/eval.sh [options]"
echo " "
echo "options:"
echo "-h, --help show brief help"
echo "-gpu gpu id"
echo "-image_set (train|val)"
echo "-log_dir Where to load models and save logs."
exit 0
fi
while test $# -gt 0; do
case "$1" in
-h|--help)
echo "Usage: ./scripts/train.sh [options]"
echo " "
echo "options:"
echo "-h, --help show brief help"
echo "-gpu gpu id"
echo "-image_set (train|val)"
echo "-log_dir Where to load models and save logs."
exit 0
;;
-gpu)
export GPUID="$2"
shift
shift
;;
-image_set)
export IMAGE_SET="$2"
shift
shift
;;
-log_dir)
export LOG_DIR="$2"
shift
shift
;;
*)
break
;;
esac
done
logdir="$LOG_DIR/"
traindir="$logdir/train/"
valdir="$logdir/eval_$IMAGE_SET"
python ./src/eval.py \
--dataset=KITTI \
--data_path=./data/ \
--image_set=$IMAGE_SET \
--eval_dir="$valdir" \
--checkpoint_path="$traindir" \
--net=$NET \
--gpu=$GPUID