-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheval.sh
106 lines (94 loc) · 2.71 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/sh
config=$1
gpus=$2
output=$3
if [ -z $config ]
then
echo "No config file found! Run with "sh eval.sh [CONFIG_FILE] [NUM_GPUS] [OUTPUT_DIR] [OPTS]""
exit 0
fi
if [ -z $gpus ]
then
echo "Number of gpus not specified! Run with "sh eval.sh [CONFIG_FILE] [NUM_GPUS] [OUTPUT_DIR] [OPTS]""
exit 0
fi
if [ -z $output ]
then
echo "No output directory found! Run with "sh eval.sh [CONFIG_FILE] [NUM_GPUS] [OUTPUT_DIR] [OPTS]""
exit 0
fi
shift 3
opts=${@}
#ADE20k-150
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--eval-only \
OUTPUT_DIR $output/eval \
MODEL.SEM_SEG_HEAD.TEST_CLASS_JSON "datasets/ade150.json" \
DATASETS.TEST \(\"ade20k_150_test_sem_seg\"\,\) \
TEST.SLIDING_WINDOW "True" \
MODEL.SEM_SEG_HEAD.POOLING_SIZES "[1,1]" \
MODEL.WEIGHTS $output/model_final.pth \
$opts
#ADE20k-847
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--eval-only \
OUTPUT_DIR $output/eval \
MODEL.SEM_SEG_HEAD.TEST_CLASS_JSON "datasets/ade847.json" \
DATASETS.TEST \(\"ade20k_full_sem_seg_freq_val_all\"\,\) \
TEST.SLIDING_WINDOW "True" \
MODEL.SEM_SEG_HEAD.POOLING_SIZES "[1,1]" \
MODEL.WEIGHTS $output/model_final.pth \
$opts
#Pascal VOC
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--eval-only \
OUTPUT_DIR $output/eval \
MODEL.SEM_SEG_HEAD.TEST_CLASS_JSON "datasets/voc20.json" \
DATASETS.TEST \(\"voc_2012_test_sem_seg\"\,\) \
TEST.SLIDING_WINDOW "True" \
MODEL.SEM_SEG_HEAD.POOLING_SIZES "[1,1]" \
MODEL.WEIGHTS $output/model_final.pth \
$opts
#Pascal VOC-b
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--eval-only \
OUTPUT_DIR $output/eval \
MODEL.SEM_SEG_HEAD.TEST_CLASS_JSON "datasets/voc20b.json" \
DATASETS.TEST \(\"voc_2012_test_background_sem_seg\"\,\) \
TEST.SLIDING_WINDOW "True" \
MODEL.SEM_SEG_HEAD.POOLING_SIZES "[1,1]" \
MODEL.WEIGHTS $output/model_final.pth \
$opts
#Pascal Context 59
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--eval-only \
OUTPUT_DIR $output/eval \
MODEL.SEM_SEG_HEAD.TEST_CLASS_JSON "datasets/pc59.json" \
DATASETS.TEST \(\"context_59_test_sem_seg\"\,\) \
TEST.SLIDING_WINDOW "True" \
MODEL.SEM_SEG_HEAD.POOLING_SIZES "[1,1]" \
MODEL.WEIGHTS $output/model_final.pth \
$opts
#Pascal Context 459
python train_net.py --config $config \
--num-gpus $gpus \
--dist-url "auto" \
--eval-only \
OUTPUT_DIR $output/eval \
MODEL.SEM_SEG_HEAD.TEST_CLASS_JSON "datasets/pc459.json" \
DATASETS.TEST \(\"context_459_test_sem_seg\"\,\) \
TEST.SLIDING_WINDOW "True" \
MODEL.SEM_SEG_HEAD.POOLING_SIZES "[1,1]" \
MODEL.WEIGHTS $output/model_final.pth \
$opts
cat $output/eval/log.txt | grep copypaste