First commit
Browse files- config.json +110 -0
- preprocessor_config.json +32 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"SegformerForImageSegmentation"
|
4 |
+
],
|
5 |
+
"attention_probs_dropout_prob": 0.0,
|
6 |
+
"classifier_dropout_prob": 0.1,
|
7 |
+
"decoder_hidden_size": 256,
|
8 |
+
"depths": [
|
9 |
+
2,
|
10 |
+
2,
|
11 |
+
2,
|
12 |
+
2
|
13 |
+
],
|
14 |
+
"downsampling_rates": [
|
15 |
+
1,
|
16 |
+
4,
|
17 |
+
8,
|
18 |
+
16
|
19 |
+
],
|
20 |
+
"drop_path_rate": 0.1,
|
21 |
+
"hidden_act": "gelu",
|
22 |
+
"hidden_dropout_prob": 0.0,
|
23 |
+
"hidden_sizes": [
|
24 |
+
64,
|
25 |
+
128,
|
26 |
+
320,
|
27 |
+
512
|
28 |
+
],
|
29 |
+
"id2label": {
|
30 |
+
"0": "road",
|
31 |
+
"1": "sidewalk",
|
32 |
+
"2": "building",
|
33 |
+
"3": "wall",
|
34 |
+
"4": "fence",
|
35 |
+
"5": "pole",
|
36 |
+
"6": "traffic light",
|
37 |
+
"7": "traffic sign",
|
38 |
+
"8": "vegetation",
|
39 |
+
"9": "terrain",
|
40 |
+
"10": "sky",
|
41 |
+
"11": "person",
|
42 |
+
"12": "rider",
|
43 |
+
"13": "car",
|
44 |
+
"14": "truck",
|
45 |
+
"15": "bus",
|
46 |
+
"16": "train",
|
47 |
+
"17": "motorcycle",
|
48 |
+
"18": "bicycle"
|
49 |
+
},
|
50 |
+
"image_size": 224,
|
51 |
+
"initializer_range": 0.02,
|
52 |
+
"label2id": {
|
53 |
+
"bicycle": 18,
|
54 |
+
"building": 2,
|
55 |
+
"bus": 15,
|
56 |
+
"car": 13,
|
57 |
+
"fence": 4,
|
58 |
+
"motorcycle": 17,
|
59 |
+
"person": 11,
|
60 |
+
"pole": 5,
|
61 |
+
"rider": 12,
|
62 |
+
"road": 0,
|
63 |
+
"sidewalk": 1,
|
64 |
+
"sky": 10,
|
65 |
+
"terrain": 9,
|
66 |
+
"traffic light": 6,
|
67 |
+
"traffic sign": 7,
|
68 |
+
"train": 16,
|
69 |
+
"truck": 14,
|
70 |
+
"vegetation": 8,
|
71 |
+
"wall": 3
|
72 |
+
},
|
73 |
+
"layer_norm_eps": 1e-06,
|
74 |
+
"mlp_ratios": [
|
75 |
+
4,
|
76 |
+
4,
|
77 |
+
4,
|
78 |
+
4
|
79 |
+
],
|
80 |
+
"model_type": "segformer",
|
81 |
+
"num_attention_heads": [
|
82 |
+
1,
|
83 |
+
2,
|
84 |
+
5,
|
85 |
+
8
|
86 |
+
],
|
87 |
+
"num_channels": 3,
|
88 |
+
"num_encoder_blocks": 4,
|
89 |
+
"patch_sizes": [
|
90 |
+
7,
|
91 |
+
3,
|
92 |
+
3,
|
93 |
+
3
|
94 |
+
],
|
95 |
+
"reshape_last_stage": true,
|
96 |
+
"sr_ratios": [
|
97 |
+
8,
|
98 |
+
4,
|
99 |
+
2,
|
100 |
+
1
|
101 |
+
],
|
102 |
+
"strides": [
|
103 |
+
4,
|
104 |
+
2,
|
105 |
+
2,
|
106 |
+
2
|
107 |
+
],
|
108 |
+
"torch_dtype": "float32",
|
109 |
+
"transformers_version": "4.12.0.dev0"
|
110 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"align": false,
|
3 |
+
"crop_size": [
|
4 |
+
512,
|
5 |
+
512
|
6 |
+
],
|
7 |
+
"do_normalize": true,
|
8 |
+
"do_pad": true,
|
9 |
+
"do_random_crop": false,
|
10 |
+
"do_resize": true,
|
11 |
+
"feature_extractor_type": "SegformerFeatureExtractor",
|
12 |
+
"image_mean": [
|
13 |
+
0.485,
|
14 |
+
0.456,
|
15 |
+
0.406
|
16 |
+
],
|
17 |
+
"image_scale": [
|
18 |
+
512,
|
19 |
+
512
|
20 |
+
],
|
21 |
+
"image_std": [
|
22 |
+
0.229,
|
23 |
+
0.224,
|
24 |
+
0.225
|
25 |
+
],
|
26 |
+
"keep_ratio": false,
|
27 |
+
"padding_value": 0,
|
28 |
+
"reduce_zero_label": false,
|
29 |
+
"resample": 2,
|
30 |
+
"segmentation_padding_value": -100,
|
31 |
+
"size_divisor": 32
|
32 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a7c40538e41d92f93ad6501d54e6333833a1d96bda7b0906c7255240e927832
|
3 |
+
size 54810145
|