Add HF-compatible model.safetensors, config.json, and preprocessor_config.json

#1
by guarin HF Staff - opened
Files changed (3) hide show
  1. config.json +196 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +29 -0
config.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_layernorm": true,
3
+ "architectures": [
4
+ "Sapiens2ForNormalEstimation"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "drop_path_rate": 0.0,
8
+ "flip_pairs": null,
9
+ "head_config": {
10
+ "_name_or_path": "",
11
+ "architectures": null,
12
+ "chunk_size_feed_forward": 0,
13
+ "conv_kernel_size": 1,
14
+ "conv_kernel_sizes": [
15
+ 3,
16
+ 3,
17
+ 3
18
+ ],
19
+ "conv_out_channels": [
20
+ 64,
21
+ 32,
22
+ 16
23
+ ],
24
+ "dtype": null,
25
+ "id2label": {
26
+ "0": "LABEL_0",
27
+ "1": "LABEL_1"
28
+ },
29
+ "is_encoder_decoder": false,
30
+ "label2id": {
31
+ "LABEL_0": 0,
32
+ "LABEL_1": 1
33
+ },
34
+ "model_type": "sapiens2_head",
35
+ "output_attentions": false,
36
+ "output_hidden_states": false,
37
+ "problem_type": null,
38
+ "return_dict": true,
39
+ "scale_conv_kernel_size": 1,
40
+ "scale_conv_kernel_sizes": null,
41
+ "scale_conv_out_channels": null,
42
+ "scale_final_hidden_sizes": null,
43
+ "scale_final_input_size": null,
44
+ "upsample_kernel_size": 4,
45
+ "upsample_kernel_sizes": [
46
+ 3,
47
+ 3,
48
+ 3,
49
+ 3
50
+ ],
51
+ "upsample_out_channels": [
52
+ 768,
53
+ 512,
54
+ 256,
55
+ 128
56
+ ],
57
+ "use_pixel_shuffle": true
58
+ },
59
+ "hidden_act": "silu",
60
+ "hidden_size": 1536,
61
+ "id2label": {
62
+ "0": "LABEL_0",
63
+ "1": "LABEL_1",
64
+ "2": "LABEL_2"
65
+ },
66
+ "image_size": [
67
+ 1024,
68
+ 768
69
+ ],
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 6144,
72
+ "key_bias": true,
73
+ "label2id": {
74
+ "LABEL_0": 0,
75
+ "LABEL_1": 1,
76
+ "LABEL_2": 2
77
+ },
78
+ "layer_norm_eps": 1e-05,
79
+ "layerscale_value": 1.0,
80
+ "mlp_bias": true,
81
+ "model_type": "sapiens2",
82
+ "normalize_backbone_outputs": true,
83
+ "num_attention_heads": 24,
84
+ "num_channels": 3,
85
+ "num_first_full_attention_layers": 8,
86
+ "num_hidden_layers": 40,
87
+ "num_key_value_attention_heads": 12,
88
+ "num_key_value_heads_per_layer": [
89
+ 24,
90
+ 24,
91
+ 24,
92
+ 24,
93
+ 24,
94
+ 24,
95
+ 24,
96
+ 24,
97
+ 12,
98
+ 12,
99
+ 12,
100
+ 12,
101
+ 12,
102
+ 12,
103
+ 12,
104
+ 12,
105
+ 12,
106
+ 12,
107
+ 12,
108
+ 12,
109
+ 12,
110
+ 12,
111
+ 12,
112
+ 12,
113
+ 12,
114
+ 12,
115
+ 12,
116
+ 12,
117
+ 12,
118
+ 12,
119
+ 12,
120
+ 12,
121
+ 24,
122
+ 24,
123
+ 24,
124
+ 24,
125
+ 24,
126
+ 24,
127
+ 24,
128
+ 24
129
+ ],
130
+ "num_last_full_attention_layers": 8,
131
+ "num_register_tokens": 8,
132
+ "out_features": [
133
+ "stage40"
134
+ ],
135
+ "out_indices": [
136
+ 40
137
+ ],
138
+ "patch_size": 16,
139
+ "pos_embed_jitter": null,
140
+ "pos_embed_rescale": 2.0,
141
+ "pos_embed_shift": null,
142
+ "proj_bias": true,
143
+ "query_bias": true,
144
+ "reshape_hidden_states": true,
145
+ "rms_norm_eps": 1e-06,
146
+ "rope_theta": 100.0,
147
+ "semantic_loss_ignore_index": 255,
148
+ "stage_names": [
149
+ "stem",
150
+ "stage1",
151
+ "stage2",
152
+ "stage3",
153
+ "stage4",
154
+ "stage5",
155
+ "stage6",
156
+ "stage7",
157
+ "stage8",
158
+ "stage9",
159
+ "stage10",
160
+ "stage11",
161
+ "stage12",
162
+ "stage13",
163
+ "stage14",
164
+ "stage15",
165
+ "stage16",
166
+ "stage17",
167
+ "stage18",
168
+ "stage19",
169
+ "stage20",
170
+ "stage21",
171
+ "stage22",
172
+ "stage23",
173
+ "stage24",
174
+ "stage25",
175
+ "stage26",
176
+ "stage27",
177
+ "stage28",
178
+ "stage29",
179
+ "stage30",
180
+ "stage31",
181
+ "stage32",
182
+ "stage33",
183
+ "stage34",
184
+ "stage35",
185
+ "stage36",
186
+ "stage37",
187
+ "stage38",
188
+ "stage39",
189
+ "stage40"
190
+ ],
191
+ "transformers_version": "5.10.0.dev0",
192
+ "use_gated_mlp": true,
193
+ "use_mask_token": false,
194
+ "use_qk_norm": true,
195
+ "value_bias": true
196
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74283c838275d30022149e14b1512797c35c95b971f74a43fc010f1dd15ea012
3
+ size 6157412276
preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": false,
7
+ "do_normalize": true,
8
+ "do_pad": true,
9
+ "do_reduce_labels": false,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "image_mean": [
13
+ 0.485,
14
+ 0.456,
15
+ 0.406
16
+ ],
17
+ "image_processor_type": "Sapiens2ImageProcessor",
18
+ "image_std": [
19
+ 0.229,
20
+ 0.224,
21
+ 0.225
22
+ ],
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 1024,
27
+ "width": 768
28
+ }
29
+ }