0-ma commited on
Commit
2ee8788
1 Parent(s): 724ecf1

Upload SegformerForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +87 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nvidia/mit-b0",
3
+ "architectures": [
4
+ "SegformerForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "classifier_dropout_prob": 0.1,
8
+ "decoder_hidden_size": 256,
9
+ "depths": [
10
+ 2,
11
+ 2,
12
+ 2,
13
+ 2
14
+ ],
15
+ "downsampling_rates": [
16
+ 1,
17
+ 4,
18
+ 8,
19
+ 16
20
+ ],
21
+ "drop_path_rate": 0.1,
22
+ "hidden_act": "gelu",
23
+ "hidden_dropout_prob": 0.0,
24
+ "hidden_sizes": [
25
+ 32,
26
+ 64,
27
+ 160,
28
+ 256
29
+ ],
30
+ "id2label": {
31
+ "0": "1",
32
+ "1": "2",
33
+ "2": "3",
34
+ "3": "4",
35
+ "4": "5",
36
+ "5": "6"
37
+ },
38
+ "image_size": 224,
39
+ "initializer_range": 0.02,
40
+ "label2id": {
41
+ "1": "0",
42
+ "2": "1",
43
+ "3": "2",
44
+ "4": "3",
45
+ "5": "4",
46
+ "6": "5"
47
+ },
48
+ "layer_norm_eps": 1e-06,
49
+ "mlp_ratios": [
50
+ 4,
51
+ 4,
52
+ 4,
53
+ 4
54
+ ],
55
+ "model_type": "segformer",
56
+ "num_attention_heads": [
57
+ 1,
58
+ 2,
59
+ 5,
60
+ 8
61
+ ],
62
+ "num_channels": 3,
63
+ "num_encoder_blocks": 4,
64
+ "patch_sizes": [
65
+ 7,
66
+ 3,
67
+ 3,
68
+ 3
69
+ ],
70
+ "problem_type": "single_label_classification",
71
+ "reshape_last_stage": true,
72
+ "semantic_loss_ignore_index": 255,
73
+ "sr_ratios": [
74
+ 8,
75
+ 4,
76
+ 2,
77
+ 1
78
+ ],
79
+ "strides": [
80
+ 4,
81
+ 2,
82
+ 2,
83
+ 2
84
+ ],
85
+ "torch_dtype": "float32",
86
+ "transformers_version": "4.44.2"
87
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f3a949b9d14bbb19defe5b802f6baa277832aa43aea4a216c01d5d8bf8bcd80
3
+ size 13306288