File size: 6,993 Bytes
66ec950
 
 
87fe461
 
ab818d6
 
 
 
 
 
 
 
 
 
87fe461
66ec950
87fe461
bcb8af1
 
ab818d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcb8af1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87fe461
 
 
 
bcb8af1
87fe461
 
 
 
 
bcb8af1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86c6aac
 
 
 
 
 
 
 
 
 
 
ab818d6
86c6aac
ab818d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86c6aac
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
{
    "ToGray": [],
    "ToSepia": [],
    "ChannelShuffle": [],
    "InvertImg": [],
    "VerticalFlip": [],
    "HorizontalFlip": [],
    "Flip": [],
    "RandomGridShuffle": [
              {"param_name" : "grid",
              "type" : "several_ints",
              "subparam_names": ["y", "x"],
              "limits_list" : [[1, 10],[1, 10]],
              "defaults_list" : [3, 3]}
            ],    
    "Blur": [{"param_name" : "blur_limit",
              "type" : "int_interval",
              "limits_list" : [3, 100],
              "defaults" : [3, 7]}
            ],
    "MotionBlur": [{"param_name" : "blur_limit",
              "type" : "int_interval",
              "limits_list" : [3, 100],
              "defaults" : [3, 7]}
            ],
    "MedianBlur": [{"param_name" : "blur_limit",
              "type" : "int_interval",
              "limits_list" : [3, 100],
              "defaults" : [3, 7]}
            ],
    "GaussNoise": [{"param_name" : "var_limit",
              "type" : "int_interval",
              "limits_list" : [0.0, 500.0],
              "defaults" : [10.0, 50.0]},
                   {"param_name" : "mean",
              "type" : "int_interval",
              "limits_list" : [-100.0, 100.0],
              "defaults" : 0.0}
            ],
    "RandomBrightness": [{"param_name" : "limit",
              "type" : "int_interval",
              "limits_list" : [-1.0, 1.0],
              "defaults" : [-0.2, 0.2]}
            ],
    "RandomContrast": [{"param_name" : "limit",
              "type" : "int_interval",
              "limits_list" : [-1.0, 1.0],
              "defaults" : [-0.2, 0.2]}
            ],
    "HueSaturationValue": [{  "param_name" : "hue_shift_limit",
                              "type" : "int_interval",
                              "limits_list" : [-100, 100],
                              "defaults" : [-20, 20]},
                           {  "param_name" : "sat_shift_limit",
                              "type" : "int_interval",
                              "limits_list" : [-100, 100],
                              "defaults" : [-30, 30]},
                           {  "param_name" : "val_shift_limit",
                              "type" : "int_interval",
                              "limits_list" : [-100, 100],
                              "defaults" : [-20, 20]}
                          ],
    "RGBShift": [{  "param_name" : "r_shift_limit",
                              "type" : "int_interval",
                              "limits_list" : [-255, 255],
                              "defaults" : [-20, 20]},
                           {  "param_name" : "g_shift_limit",
                              "type" : "int_interval",
                              "limits_list" : [-255, 255],
                              "defaults" : [-20, 20]},
                           {  "param_name" : "b_shift_limit",
                              "type" : "int_interval",
                              "limits_list" : [-255, 255],
                              "defaults" : [-20, 20]}
                          ],
    "JpegCompression": [{"param_name" : "quality_lower",
                          "type" : "int_interval",
                          "limits_list" : [0, 100],
                          "defaults" : 99},
                        {"param_name" : "quality_upper",
                          "type" : "int_interval",
                          "limits_list" : [0, 100],
                          "defaults" : 100}
            ],
    "ImageCompression": [{"param_name" : "quality_lower",
                          "type" : "int_interval",
                          "limits_list" : [0, 100],
                          "defaults" : 99},
                        {"param_name" : "quality_upper",
                          "type" : "int_interval",
                          "limits_list" : [0, 100],
                          "defaults" : 100},
                         {"param_name" : "compression_type",
                          "type" : "radio",
                          "options_list" : [0, 1]}
            ],
    "CLAHE": [{"param_name" : "clip_limit",
              "type" : "int_interval",
              "limits_list" : [1, 100],
              "defaults" : [1, 4]},
              {"param_name" : "tile_grid_size",
              "type" : "several_ints",
              "subparam_names": ["y", "x"],
              "limits_list" : [[1, 100],[1, 100]],
              "defaults_list" : [8, 8]}
            ],
    "Cutout": [{"param_name" : "num_holes",
              "type" : "int_interval",
              "limits_list" : [1, 100],
              "defaults" : 8},
               {"param_name" : "max_h_size",
              "type" : "int_interval",
              "limits_list" : [1, 100],
              "defaults" : 8},
               {"param_name" : "max_w_size",
              "type" : "int_interval",
              "limits_list" : [1, 100],
              "defaults" : 8},
              {"param_name" : "fill_value",
              "type" : "rgb"}
            ],
    "RandomSnow": [{"param_name" : "snow_point_lower",
                  "type" : "int_interval",
                  "limits_list" : [0.0, 1.0],
                  "defaults" : 0.1},
                   {"param_name" : "snow_point_upper",
                  "type" : "int_interval",
                  "limits_list" : [0.0, 1.0],
                  "defaults" : 0.1},
                 {"param_name" : "brightness_coeff",
                  "type" : "int_interval",
                  "limits_list" : [0.0, 20.0],
                  "defaults" : 2.5}
                ],
    "RandomFog": [{"param_name" : "fog_coef_lower",
                  "type" : "int_interval",
                  "limits_list" : [0.0, 1.0],
                  "defaults" : 0.1},
                   {"param_name" : "fog_coef_upper",
                  "type" : "int_interval",
                  "limits_list" : [0.0, 1.0],
                  "defaults" : 0.1},
                 {"param_name" : "alpha_coef",
                  "type" : "int_interval",
                  "limits_list" : [0.0, 1.0],
                  "defaults" : 0.08}
                ],
    "ChannelDropout": [{"param_name" : "channel_drop_range",
                  "type" : "int_interval",
                  "limits_list" : [1, 3],
                  "defaults" : [1, 1]},
                  {"param_name" : "fill_value",
                  "type" : "int_interval",
                  "limits_list" : [0, 255],
                  "defaults" : 0}
                ],
    "Solarize": [{"param_name" : "threshold",
              "type" : "int_interval",
              "limits_list" : [0, 255],
              "defaults" : 128}
            ],
    "Equalize": [
                 {"param_name" : "mode",
                  "type" : "radio",
                  "options_list" : ["cv", "pil"]},
                 {"param_name" : "by_channels",
                  "type" : "checkbox",
                  "defaults": 1}        
            ]
}