-
Notifications
You must be signed in to change notification settings - Fork 1
/
simsac_run_script
183 lines (172 loc) · 6.62 KB
/
simsac_run_script
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# example (pretrained, training and test)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0002 \
--split_ratio 0.9 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--trainset_list synthetic changesim_normal \
--testset_list changesim_normal \
--name_exp joint_synthetic_changesim \
--pretrained ""
# --pretrained ../../E2EChangeDet/GLU-ChangeNet-Pytorch/pre_trained_models/synthetic_lr0.0002_epoch_25.pth
# dense cl weights
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 24 --test_batch_size 24 --plot_interval 10 --lr 0.00005 \
--split_ratio 0.065 --split2_ratio 0.0001 \
--n_epoch 25 \
--resume "" \
--pyramid_type "ResNet" \
--dense_cl \
--trainset_list synthetic changesim_normal \
--testset_list changesim_normal \
--name_exp joint_syn_csnorm \
--pretrained ""
# dense cl weights
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 24 --test_batch_size 24 --plot_interval 10 --lr 0.0002 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--pyramid_type "ResNet" \
--trainset_list synthetic \
--testset_list changesim_normal \
--name_exp syn_res18 \
--pretrained ""
# test
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--pyramid_type "ResNet" \
--trainset_list synthetic \
--testset_list changesim_dust \
--name_exp syn_res18_test \
--pretrained "./snapshots/syn_res18_cl/epoch_8.pth" \
--test_only
# test (VGG16)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 24 --test_batch_size 24 --plot_interval 10 --lr 0.0002 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--trainset_list synthetic \
--testset_list changesim_normal \
--name_exp syn_resnet_densecl \
--pretrained "../../E2EChangeDet/GLU-ChangeNet-Pytorch/pre_trained_models/synthetic_lr0.0002_epoch_25.pth" \
--test_only
# train (VGG16)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--cl \
--trainset_list synthetic \
--testset_list changesim_normal \
--name_exp syn_vgg16_cl \
--pretrained ""
# train (res18)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--cl 4 \
--pyramid_type "ResNet" \
--trainset_list synthetic \
--testset_list changesim_normal \
--name_exp syn_res18_cl2 \
--pretrained ""
# test (res18)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 8 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 25 \
--resume "" \
--cl 4 \
--pyramid_type "ResNet" \
--trainset_list synthetic \
--testset_list changesim_dark \
--name_exp syn_res18_cl \
--pretrained "./snapshots/syn_res18_ft/epoch_23.pth" \
--test_only
# train (finetune res18-synthetic-cl4)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 4 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.065 --split2_ratio 0.0001 \
--n_epoch 25 \
--resume "" \
--cl 0 \
--pyramid_type "ResNet" \
--trainset_list synthetic changesim_normal \
--testset_list changesim_normal \
--name_exp syn_res18_ft_after_cl \
--pretrained "./snapshots/syn_res18_cl/epoch_8.pth"
# train (USL)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 4 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 50 \
--resume "" \
--cl 0 \
--pyramid_type "ResNet" \
--trainset_list changesim_normal \
--testset_list changesim_normal \
--name_exp csnorm_res18_usl2 \
--usl \
--sg_dec \
--pretrained ""
# train (SL --> SL + USL)
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 4 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.065 --split2_ratio 0.0001 \
--n_epoch 50 \
--resume "" \
--cl 0 \
--pyramid_type "ResNet" \
--trainset_list synthetic changesim_normal \
--testset_list changesim_normal \
--name_exp csnorm_res18_usl4 \
--usl \
--sg_dec \
--scheduler cosine_anneal \
--pretrained ""
python train_GLUChangeNet.py --training_data_dir ../../E2EChangeDet/dataset/train_datasets \
--evaluation_data_dir ../../E2EChangeDet/dataset/test_datasets \
--train_img_size 520 520 --test_img_size 520 520 --n_threads 4 \
--batch_size 16 --test_batch_size 16 --plot_interval 10 --lr 0.0001 \
--split_ratio 0.9999 --split2_ratio 0.5 \
--n_epoch 50 \
--resume "" \
--cl 0 \
--pyramid_type "ResNet" \
--trainset_list changesim_normal \
--testset_list changesim_normal \
--name_exp csnorm_res18_usl2 \
--usl \
--sg_dec \
--pretrained "./snapshots/csnorm_res18_usl3/epoch_33.pth" \
--test_only