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 +191 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +29 -0
config.json ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 1280,
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": 5120,
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": 16,
95
+ "num_channels": 3,
96
+ "num_first_full_attention_layers": 8,
97
+ "num_hidden_layers": 32,
98
+ "num_key_value_attention_heads": 8,
99
+ "num_key_value_heads_per_layer": [
100
+ 16,
101
+ 16,
102
+ 16,
103
+ 16,
104
+ 16,
105
+ 16,
106
+ 16,
107
+ 16,
108
+ 8,
109
+ 8,
110
+ 8,
111
+ 8,
112
+ 8,
113
+ 8,
114
+ 8,
115
+ 8,
116
+ 8,
117
+ 8,
118
+ 8,
119
+ 8,
120
+ 8,
121
+ 8,
122
+ 8,
123
+ 8,
124
+ 16,
125
+ 16,
126
+ 16,
127
+ 16,
128
+ 16,
129
+ 16,
130
+ 16,
131
+ 16
132
+ ],
133
+ "num_last_full_attention_layers": 8,
134
+ "num_register_tokens": 8,
135
+ "out_features": [
136
+ "stage32"
137
+ ],
138
+ "out_indices": [
139
+ 32
140
+ ],
141
+ "patch_size": 16,
142
+ "pos_embed_jitter": null,
143
+ "pos_embed_rescale": 2.0,
144
+ "pos_embed_shift": null,
145
+ "proj_bias": true,
146
+ "query_bias": true,
147
+ "reshape_hidden_states": true,
148
+ "rms_norm_eps": 1e-06,
149
+ "rope_theta": 100.0,
150
+ "semantic_loss_ignore_index": 255,
151
+ "stage_names": [
152
+ "stem",
153
+ "stage1",
154
+ "stage2",
155
+ "stage3",
156
+ "stage4",
157
+ "stage5",
158
+ "stage6",
159
+ "stage7",
160
+ "stage8",
161
+ "stage9",
162
+ "stage10",
163
+ "stage11",
164
+ "stage12",
165
+ "stage13",
166
+ "stage14",
167
+ "stage15",
168
+ "stage16",
169
+ "stage17",
170
+ "stage18",
171
+ "stage19",
172
+ "stage20",
173
+ "stage21",
174
+ "stage22",
175
+ "stage23",
176
+ "stage24",
177
+ "stage25",
178
+ "stage26",
179
+ "stage27",
180
+ "stage28",
181
+ "stage29",
182
+ "stage30",
183
+ "stage31",
184
+ "stage32"
185
+ ],
186
+ "transformers_version": "5.10.0.dev0",
187
+ "use_gated_mlp": true,
188
+ "use_mask_token": false,
189
+ "use_qk_norm": true,
190
+ "value_bias": true
191
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25e19baff24f684a145f85cdb4a85a691ddda11376d5c915c2f28a451633d32f
3
+ size 3869526424
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
+ }