hf-transformers-bot commited on
Commit
d140234
1 Parent(s): 6da3479

Upload tiny models for SegformerForSemanticSegmentation

Browse files
Files changed (4) hide show
  1. config.json +64 -0
  2. preprocessor_config.json +24 -0
  3. pytorch_model.bin +3 -0
  4. tf_model.h5 +3 -0
config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "tiny_models/segformer/SegformerForSemanticSegmentation",
3
+ "architectures": [
4
+ "SegformerForSemanticSegmentation"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout_prob": 0.1,
8
+ "decoder_hidden_size": 256,
9
+ "depths": [
10
+ 2,
11
+ 2,
12
+ 2,
13
+ 2
14
+ ],
15
+ "drop_path_rate": 0.1,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.1,
18
+ "hidden_sizes": [
19
+ 16,
20
+ 32,
21
+ 64,
22
+ 128
23
+ ],
24
+ "image_size": 64,
25
+ "initializer_range": 0.02,
26
+ "layer_norm_eps": 1e-06,
27
+ "mlp_ratios": [
28
+ 4,
29
+ 4,
30
+ 4,
31
+ 4
32
+ ],
33
+ "model_type": "segformer",
34
+ "num_attention_heads": [
35
+ 1,
36
+ 2,
37
+ 4,
38
+ 8
39
+ ],
40
+ "num_channels": 3,
41
+ "num_encoder_blocks": 4,
42
+ "patch_sizes": [
43
+ 7,
44
+ 3,
45
+ 3,
46
+ 3
47
+ ],
48
+ "reshape_last_stage": true,
49
+ "semantic_loss_ignore_index": 255,
50
+ "sr_ratios": [
51
+ 8,
52
+ 4,
53
+ 2,
54
+ 1
55
+ ],
56
+ "strides": [
57
+ 4,
58
+ 2,
59
+ 2,
60
+ 2
61
+ ],
62
+ "torch_dtype": "float32",
63
+ "transformers_version": "4.28.0.dev0"
64
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 64,
3
+ "do_normalize": true,
4
+ "do_reduce_labels": false,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.485,
9
+ 0.456,
10
+ 0.406
11
+ ],
12
+ "image_processor_type": "SegformerImageProcessor",
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "resample": 2,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "height": 64,
22
+ "width": 64
23
+ }
24
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00af69fa7ba660ba693cef5312b28fe4f10a4543d985e99993b1c46bf0495583
3
+ size 4360589
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec430494c38d7ffec11b0398c2b614d3ecacefb27de9c018cf04c7c1c303f72f
3
+ size 4565328