-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy.py
66 lines (55 loc) · 2.09 KB
/
policy.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
from autoaugment import SubPolicy
policies = [
SubPolicy(0.1, "invert", 7),
SubPolicy(0.2, "contrast", 6),
SubPolicy(0.7, "rotate", 2),
SubPolicy(0.3, "translateX", 9),
SubPolicy(0.8, "sharpness", 1),
SubPolicy(0.9, "sharpness", 3),
SubPolicy(0.5, "shearY", 2),
SubPolicy(0.7, "translateY", 2) ,
SubPolicy(0.5, "autocontrast", 5),
SubPolicy(0.9, "equalize", 2), #
SubPolicy(0.2, "shearY", 5),
SubPolicy(0.3, "posterize", 5), #
SubPolicy(0.4, "color", 3),
SubPolicy(0.6, "brightness", 5), #
SubPolicy(0.3, "sharpness", 9),
SubPolicy(0.7, "brightness", 9),
SubPolicy(0.6, "equalize", 5),
SubPolicy(0.5, "equalize", 1),
SubPolicy(0.6, "contrast", 7),
SubPolicy(0.6, "sharpness", 5),
SubPolicy(0.7, "color", 5),
SubPolicy(0.5, "translateX", 5), #
SubPolicy(0.3, "equalize", 7),
SubPolicy(0.4, "autocontrast", 8),
SubPolicy(0.4, "translateY", 3),
SubPolicy(0.2, "sharpness", 6),
SubPolicy(0.9, "brightness", 6),
SubPolicy(0.2, "color", 8),
SubPolicy(0.5, "solarize", 0),
SubPolicy(0.0, "invert", 0), #
SubPolicy(0.2, "equalize", 0),
SubPolicy(0.6, "autocontrast", 0), #
SubPolicy(0.2, "equalize", 8),
SubPolicy(0.6, "equalize", 4),
SubPolicy(0.9, "color", 5),
SubPolicy(0.6, "equalize", 5), #
SubPolicy(0.8, "autocontrast", 4),
SubPolicy(0.2, "solarize", 4), #
SubPolicy(0.1, "brightness", 3),
SubPolicy(0.7, "color", 0),
SubPolicy(0.4, "solarize", 1),
SubPolicy(0.9, "autocontrast", 0), #
SubPolicy(0.9, "translateY", 3),
SubPolicy(0.7, "translateY", 3), #
SubPolicy(0.9, "autocontrast", 1),
SubPolicy(0.8, "solarize", 1), #
SubPolicy(0.8, "equalize", 5),
SubPolicy(0.1, "invert", 0), #
SubPolicy(0.7, "translateY", 3),
SubPolicy(0.9, "autocontrast", 1),
]
if __name__ == '__main__':
print(len(policies))