-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
156 lines (135 loc) · 3.25 KB
/
config.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
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
class DefaultConfigs_C(object):
src1_data = 'oulu'
src1_train_num_frames = 1
src2_data = 'replay'
src2_train_num_frames = 1
src3_data = 'msu'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'casia'
src5_train_num_frames = 1
tgt_data = 'casia'
tgt_test_num_frames = 2
weight = 0.03 # You may use 0.01 or 0.03
gamma = 0.3
beta = 0.5
class DefaultConfigs_I(object):
src1_data = 'oulu'
src1_train_num_frames = 1
src2_data = 'casia'
src2_train_num_frames = 1
src3_data = 'msu'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'replay'
src5_train_num_frames = 1
tgt_data = 'replay'
tgt_test_num_frames = 2
weight = 0.03 # You may use 0.01 or 0.03
gamma = 0.3
beta = 0.5
class DefaultConfigs_M(object):
src1_data = 'oulu'
src1_train_num_frames = 1
src2_data = 'casia'
src2_train_num_frames = 1
src3_data = 'replay'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'msu'
src5_train_num_frames = 1
tgt_data = 'msu'
tgt_test_num_frames = 2
weight = 1
gamma = 0.3
beta = 0.5
class DefaultConfigs_O(object):
src1_data = 'replay'
src1_train_num_frames = 1
src2_data = 'casia'
src2_train_num_frames = 1
src3_data = 'msu'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'oulu'
src5_train_num_frames = 1
tgt_data = 'oulu'
tgt_test_num_frames = 2
weight = 1
gamma = 0.3
beta = 0.5
class DefaultConfigs_cefa(object):
src1_data = 'wmca'
src1_train_num_frames = 1
src2_data = 'surf'
src2_train_num_frames = 1
src3_data = 'celeb'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'cefa'
src5_train_num_frames = 1
tgt_data = 'cefa'
tgt_test_num_frames = 2
weight = 1
gamma = 0.1
beta = 0.1
class DefaultConfigs_surf(object):
src1_data = 'wmca'
src1_train_num_frames = 1
src2_data = 'cefa'
src2_train_num_frames = 1
src3_data = 'celeb'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'surf'
src5_train_num_frames = 1
tgt_data = 'surf'
tgt_test_num_frames = 2
weight = 0.1
gamma = 0.1
beta = 0.1
class DefaultConfigs_wmca(object):
src1_data = 'cefa'
src1_train_num_frames = 1
src2_data = 'surf'
src2_train_num_frames = 1
src3_data = 'celeb'
src3_train_num_frames = 1
src4_data = 'celeb'
src4_train_num_frames = 1
src5_data = 'wmca'
src5_train_num_frames = 1
tgt_data = 'wmca'
tgt_test_num_frames = 2
weight = 0.01
gamma = 0.1
beta = 0.1
class DefaultConfigs_B(object):
src1_data = 'celeb'
src1_train_num_frames = 1
tgt_data = 'celeb'
tgt_test_num_frames = 1
weight = 0.03 # You may use 0.01 or 0.03
gamma = 0.3
beta = 0.5
class DefaultConfigs_One(object):
tgt_data = '/data/anti_face_spoofing/few_shot_fas/test'
tgt_test_num_frames = 1
weight = 0.03 # You may use 0.01 or 0.03
gamma = 0.3
beta = 0.5
configC = DefaultConfigs_C()
configI = DefaultConfigs_I()
configM = DefaultConfigs_M()
configO = DefaultConfigs_O()
configB = DefaultConfigs_B()
configOne = DefaultConfigs_One()
config_cefa = DefaultConfigs_cefa()
config_surf = DefaultConfigs_surf()
config_wmca = DefaultConfigs_wmca()