-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallrun_zurich_Transform3.py
89 lines (73 loc) · 4.52 KB
/
allrun_zurich_Transform3.py
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
'''
2024.5.12: test the scale sensitivity. The range is o.6=
'''
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '3'
def run_TETL(backbone= "effiSAM", citylist = ["uavid",]):
# citylist = ["uavid",]
# backbone = "effiSAM"
method = "TELT"
for city in citylist:
ttype = 'mix'
os.system(f"python all_{method}_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.002 "
f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}_bs8 --input_size_train 1024,1024 --input_size_test 1024,1024 "
f"--batch_size 8 --num_workers 4 --iscolor True")
def run_UTELT():
# city = "Zurich"
# city = "Vaihingen"
# citylist = ["Zurich", "Vaihingen"]
# citylist = ["Zurich",]
citylist = ["Vaihingen",]
backbone = "effiSAM"
method = "UTELT"
for city in citylist:
pass
# ttype = 'scale'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}")
# ttype = 'color'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}")
# ttype = 'rotate'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}")
# ttype = 'random'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype} --iscolor True")
# ttype = 'mix'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype} --iscolor True")
backbone = "effiSAM"
method = "UTELT"
citylist = ['uavid',]
for city in citylist:
# ttype = 'scale' # batch_size=4
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype} --input_size_train 1024,1024 --input_size_test 1024,1024 "
# f"--batch_size 4 --num_workers 4")
# scale
# ttype = 'scale'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}_bs8 --input_size_train 1024,1024 --input_size_test 1024,1024 "
# f"--batch_size 8 --num_workers 4")
# add color transform to the dataloader
# ttype = 'color'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}_bs8 --input_size_train 1024,1024 --input_size_test 1024,1024 "
# f"--batch_size 8 --num_workers 4 --iscolor True")
# ttype = 'rotate'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}_bs8 --input_size_train 1024,1024 --input_size_test 1024,1024 "
# f"--batch_size 8 --num_workers 4")
# ttype = 'random'
# os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
# f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}_bs8 --input_size_train 1024,1024 --input_size_test 1024,1024 "
# f"--batch_size 8 --num_workers 4 --iscolor True")
ttype = 'mix'
os.system(f"python all_UTELT_{ttype}.py --city {city} --mode 1 --id 1 --backbone {backbone} --method {method} --tel_sigma 0.02 "
f"--Tuncert 0.9 --subdir /trans --suffix _{ttype}_bs8 --input_size_train 1024,1024 --input_size_test 1024,1024 "
f"--batch_size 8 --num_workers 4 --iscolor True")
if __name__=="__main__":
#run_TETL()
#run_TETL(backbone="unetformer", citylist = ["uavid",])
run_TETL(backbone="FCNcls", citylist = ["uavid",])