-
Notifications
You must be signed in to change notification settings - Fork 60
/
datasets.py
53 lines (52 loc) · 1.94 KB
/
datasets.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
import numpy as np
# Configurations for different datasets
CONFIG = {
'cityscapes': {
'classes': 19,
'weights_file': 'data/pretrained_dilation_cityscapes.pickle',
'input_shape': (1396, 1396, 3),
'output_shape': (1024, 1024, 19),
'mean_pixel': (72.39, 82.91, 73.16),
'palette': np.array([[128, 64, 128],
[244, 35, 232],
[70, 70, 70],
[102, 102, 156],
[190, 153, 153],
[153, 153, 153],
[250, 170, 30],
[220, 220, 0],
[107, 142, 35],
[152, 251, 152],
[70, 130, 180],
[220, 20, 60],
[255, 0, 0],
[0, 0, 142],
[0, 0, 70],
[0, 60, 100],
[0, 80, 100],
[0, 0, 230],
[119, 11, 32]], dtype='uint8'),
'zoom': 1,
'conv_margin': 186
},
'camvid': {
'classes': 11,
'weights_file': 'data/pretrained_dilation_camvid.pickle',
'input_shape': (900, 1100, 3),
'output_shape': (66, 91, 11),
'mean_pixel': (110.70, 108.77, 105.41),
'palette': np.array([[128, 0, 0],
[128, 128, 0],
[128, 128, 128],
[64, 0, 128],
[192, 128, 128],
[128, 64, 128],
[64, 64, 0],
[64, 64, 128],
[192, 192, 128],
[0, 0, 192],
[0, 128, 192]], dtype='uint8'),
'zoom': 8,
'conv_margin': 186
}
}