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 +207 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +29 -0
config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_layernorm": true,
3
+ "architectures": [
4
+ "Sapiens2ForPointmapEstimation"
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": [
41
+ 1,
42
+ 1,
43
+ 1
44
+ ],
45
+ "scale_conv_out_channels": [
46
+ 1536,
47
+ 512,
48
+ 128
49
+ ],
50
+ "scale_final_hidden_sizes": [
51
+ 512,
52
+ 128
53
+ ],
54
+ "scale_final_input_size": 6144,
55
+ "upsample_kernel_size": 4,
56
+ "upsample_kernel_sizes": [
57
+ 3,
58
+ 3,
59
+ 3,
60
+ 3
61
+ ],
62
+ "upsample_out_channels": [
63
+ 1536,
64
+ 768,
65
+ 512,
66
+ 256
67
+ ],
68
+ "use_pixel_shuffle": true
69
+ },
70
+ "hidden_act": "silu",
71
+ "hidden_size": 1536,
72
+ "id2label": {
73
+ "0": "LABEL_0",
74
+ "1": "LABEL_1",
75
+ "2": "LABEL_2"
76
+ },
77
+ "image_size": [
78
+ 1024,
79
+ 768
80
+ ],
81
+ "initializer_range": 0.02,
82
+ "intermediate_size": 6144,
83
+ "key_bias": true,
84
+ "label2id": {
85
+ "LABEL_0": 0,
86
+ "LABEL_1": 1,
87
+ "LABEL_2": 2
88
+ },
89
+ "layer_norm_eps": 1e-05,
90
+ "layerscale_value": 1.0,
91
+ "mlp_bias": true,
92
+ "model_type": "sapiens2",
93
+ "normalize_backbone_outputs": true,
94
+ "num_attention_heads": 24,
95
+ "num_channels": 3,
96
+ "num_first_full_attention_layers": 8,
97
+ "num_hidden_layers": 40,
98
+ "num_key_value_attention_heads": 12,
99
+ "num_key_value_heads_per_layer": [
100
+ 24,
101
+ 24,
102
+ 24,
103
+ 24,
104
+ 24,
105
+ 24,
106
+ 24,
107
+ 24,
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
+ 12,
122
+ 12,
123
+ 12,
124
+ 12,
125
+ 12,
126
+ 12,
127
+ 12,
128
+ 12,
129
+ 12,
130
+ 12,
131
+ 12,
132
+ 24,
133
+ 24,
134
+ 24,
135
+ 24,
136
+ 24,
137
+ 24,
138
+ 24,
139
+ 24
140
+ ],
141
+ "num_last_full_attention_layers": 8,
142
+ "num_register_tokens": 8,
143
+ "out_features": [
144
+ "stage40"
145
+ ],
146
+ "out_indices": [
147
+ 40
148
+ ],
149
+ "patch_size": 16,
150
+ "pos_embed_jitter": null,
151
+ "pos_embed_rescale": 2.0,
152
+ "pos_embed_shift": null,
153
+ "proj_bias": true,
154
+ "query_bias": true,
155
+ "reshape_hidden_states": true,
156
+ "rms_norm_eps": 1e-06,
157
+ "rope_theta": 100.0,
158
+ "semantic_loss_ignore_index": 255,
159
+ "stage_names": [
160
+ "stem",
161
+ "stage1",
162
+ "stage2",
163
+ "stage3",
164
+ "stage4",
165
+ "stage5",
166
+ "stage6",
167
+ "stage7",
168
+ "stage8",
169
+ "stage9",
170
+ "stage10",
171
+ "stage11",
172
+ "stage12",
173
+ "stage13",
174
+ "stage14",
175
+ "stage15",
176
+ "stage16",
177
+ "stage17",
178
+ "stage18",
179
+ "stage19",
180
+ "stage20",
181
+ "stage21",
182
+ "stage22",
183
+ "stage23",
184
+ "stage24",
185
+ "stage25",
186
+ "stage26",
187
+ "stage27",
188
+ "stage28",
189
+ "stage29",
190
+ "stage30",
191
+ "stage31",
192
+ "stage32",
193
+ "stage33",
194
+ "stage34",
195
+ "stage35",
196
+ "stage36",
197
+ "stage37",
198
+ "stage38",
199
+ "stage39",
200
+ "stage40"
201
+ ],
202
+ "transformers_version": "5.10.0.dev0",
203
+ "use_gated_mlp": true,
204
+ "use_mask_token": false,
205
+ "use_qk_norm": true,
206
+ "value_bias": true
207
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8080030066063231a47f02ce65b9ae27d7f7510d6320c4842f815620c832ec00
3
+ size 6518452960
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
+ }