hf-transformers-bot commited on
Commit
3199005
·
1 Parent(s): f2a8ee9

Upload tiny models for Mask2FormerModel

Browse files
Files changed (3) hide show
  1. config.json +161 -0
  2. preprocessor_config.json +27 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "activation_function": "relu",
4
+ "architectures": [
5
+ "Mask2FormerModel"
6
+ ],
7
+ "backbone_config": {
8
+ "_name_or_path": "",
9
+ "add_cross_attention": false,
10
+ "architectures": null,
11
+ "attention_probs_dropout_prob": 0.0,
12
+ "bad_words_ids": null,
13
+ "begin_suppress_tokens": null,
14
+ "bos_token_id": null,
15
+ "chunk_size_feed_forward": 0,
16
+ "cross_attention_hidden_size": null,
17
+ "decoder_start_token_id": null,
18
+ "depths": [
19
+ 1,
20
+ 1,
21
+ 1,
22
+ 1
23
+ ],
24
+ "diversity_penalty": 0.0,
25
+ "do_sample": false,
26
+ "drop_path_rate": 0.3,
27
+ "early_stopping": false,
28
+ "embed_dim": 96,
29
+ "encoder_no_repeat_ngram_size": 0,
30
+ "encoder_stride": 32,
31
+ "eos_token_id": null,
32
+ "exponential_decay_length_penalty": null,
33
+ "finetuning_task": null,
34
+ "forced_bos_token_id": null,
35
+ "forced_eos_token_id": null,
36
+ "hidden_act": "gelu",
37
+ "hidden_dropout_prob": 0.0,
38
+ "hidden_size": 768,
39
+ "id2label": {
40
+ "0": "LABEL_0",
41
+ "1": "LABEL_1"
42
+ },
43
+ "image_size": 224,
44
+ "in_channels": 3,
45
+ "initializer_range": 0.02,
46
+ "is_decoder": false,
47
+ "is_encoder_decoder": false,
48
+ "label2id": {
49
+ "LABEL_0": 0,
50
+ "LABEL_1": 1
51
+ },
52
+ "layer_norm_eps": 1e-05,
53
+ "length_penalty": 1.0,
54
+ "max_length": 20,
55
+ "min_length": 0,
56
+ "mlp_ratio": 4.0,
57
+ "model_type": "swin",
58
+ "no_repeat_ngram_size": 0,
59
+ "num_beam_groups": 1,
60
+ "num_beams": 1,
61
+ "num_channels": 3,
62
+ "num_heads": [
63
+ 3,
64
+ 6,
65
+ 12,
66
+ 24
67
+ ],
68
+ "num_layers": 4,
69
+ "num_return_sequences": 1,
70
+ "out_features": [
71
+ "stage1",
72
+ "stage2",
73
+ "stage3",
74
+ "stage4"
75
+ ],
76
+ "output_attentions": false,
77
+ "output_hidden_states": false,
78
+ "output_scores": false,
79
+ "pad_token_id": null,
80
+ "patch_size": 4,
81
+ "prefix": null,
82
+ "problem_type": null,
83
+ "pruned_heads": {},
84
+ "qkv_bias": true,
85
+ "remove_invalid_values": false,
86
+ "repetition_penalty": 1.0,
87
+ "return_dict": true,
88
+ "return_dict_in_generate": false,
89
+ "sep_token_id": null,
90
+ "stage_names": [
91
+ "stem",
92
+ "stage1",
93
+ "stage2",
94
+ "stage3",
95
+ "stage4"
96
+ ],
97
+ "suppress_tokens": null,
98
+ "task_specific_params": null,
99
+ "temperature": 1.0,
100
+ "tf_legacy_loss": false,
101
+ "tie_encoder_decoder": false,
102
+ "tie_word_embeddings": true,
103
+ "tokenizer_class": null,
104
+ "top_k": 50,
105
+ "top_p": 1.0,
106
+ "torch_dtype": null,
107
+ "torchscript": false,
108
+ "transformers_version": "4.28.0.dev0",
109
+ "typical_p": 1.0,
110
+ "use_absolute_embeddings": false,
111
+ "use_bfloat16": false,
112
+ "window_size": 7
113
+ },
114
+ "class_weight": 2.0,
115
+ "common_stride": 4,
116
+ "decoder_layers": 10,
117
+ "dice_weight": 5.0,
118
+ "dim_feedforward": 128,
119
+ "dropout": 0.0,
120
+ "encoder_feedforward_dim": 64,
121
+ "encoder_layers": 6,
122
+ "enforce_input_projection": false,
123
+ "feature_size": 64,
124
+ "feature_strides": [
125
+ 4,
126
+ 8,
127
+ 16,
128
+ 32
129
+ ],
130
+ "hidden_dim": 64,
131
+ "id2label": {
132
+ "0": "LABEL_0",
133
+ "1": "LABEL_1",
134
+ "2": "LABEL_2",
135
+ "3": "LABEL_3"
136
+ },
137
+ "ignore_value": 255,
138
+ "importance_sample_ratio": 0.75,
139
+ "init_std": 0.02,
140
+ "init_xavier_std": 1.0,
141
+ "label2id": {
142
+ "LABEL_0": 0,
143
+ "LABEL_1": 1,
144
+ "LABEL_2": 2,
145
+ "LABEL_3": 3
146
+ },
147
+ "mask_feature_size": 64,
148
+ "mask_weight": 5.0,
149
+ "model_type": "mask2former",
150
+ "no_object_weight": 0.1,
151
+ "num_attention_heads": 8,
152
+ "num_hidden_layers": 10,
153
+ "num_queries": 10,
154
+ "output_auxiliary_logits": null,
155
+ "oversample_ratio": 3.0,
156
+ "pre_norm": false,
157
+ "torch_dtype": "float32",
158
+ "train_num_points": 12544,
159
+ "transformers_version": null,
160
+ "use_auxiliary_loss": true
161
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_max_size": 1333,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "ignore_index": 255,
7
+ "image_mean": [
8
+ 0.48500001430511475,
9
+ 0.4560000002384186,
10
+ 0.4059999883174896
11
+ ],
12
+ "image_processor_type": "Mask2FormerImageProcessor",
13
+ "image_std": [
14
+ 0.2290000021457672,
15
+ 0.2239999920129776,
16
+ 0.22499999403953552
17
+ ],
18
+ "num_labels": 80,
19
+ "reduce_labels": false,
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 384,
24
+ "width": 384
25
+ },
26
+ "size_divisor": 32
27
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95a58492438340fbabce3eba282bc799055f7da9cb13ec9908d0be6f1211f18a
3
+ size 47428953